[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #41241] octave forge package 'database 2.3.0'
From: |
John Donoghue |
Subject: |
[Octave-bug-tracker] [bug #41241] octave forge package 'database 2.3.0' fails to install in mxe-octave. |
Date: |
Thu, 22 Jan 2015 19:56:30 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko |
Follow-up Comment #13, bug #41241 (project octave):
I just cross compiled postgresql 9.4.0 and tried with mxe-octave:
Running the tests:
>> test pq_connect
***** test
conn = pq_connect (setdbopts ("dbname", "test"));
assert (islogical (t = pq_exec_params (conn, "select ($1);", {true}).data{1})
&& t == true);
assert (strcmp (typeinfo (t = pq_exec_params (conn, "select ($1);",
{uint32(3)}).data{1}), "uint32 scalar") && t == 3);
assert (strcmp (typeinfo (t = pq_exec_params (conn, "select ($1);",
{.5}).data{1}), "scalar") && t == .5);
assert (strcmp (typeinfo (t = pq_exec_params (conn, "select ($1);",
{single(.5)}).data{1}), "float scalar") && t == .5);
assert ((strcmp (ti = typeinfo (t = pq_exec_params (conn, "select ($1);",
{"abc"}).data{1}), "string") || strcmp (ti, "sq
_string")) && strcmp (t, "abc"));
assert (strcmp (typeinfo (t = pq_exec_params (conn, "select ($1);",
{uint8([2, 3])}).data{1}), "uint8 matrix") && isequal
(t, [2; 3]));
assert (strcmp (typeinfo (t = pq_exec_params (conn, "select ($1);",
{int16(-2)}).data{1}), "int16 scalar") && t == int16
(-2));
assert (strcmp (typeinfo (t = pq_exec_params (conn, "select ($1);",
{int32(-2)}).data{1}), "int32 scalar") && t == int32
(-2));
assert (strcmp (typeinfo (t = pq_exec_params (conn, "select ($1);",
{int64(-2)}).data{1}), "int64 scalar") && t == int64
(-2));
pq_close (conn);
!!!!! test failed
could not connect to server: Connection refused (0x0000274D/10061)
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused (0x0000274D/10061)
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
>>
Which is what I would expect given there is no server running locally.
So looks like the patches database works now in Windows, using 9.4.0.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?41241>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #41241] octave forge package 'database 2.3.0' fails to install in mxe-octave.,
John Donoghue <=