Re: psqlodbc: No memory available to store statement
[email protected] Thu, 27 Jun 2019 19:55:39 +0300
| Newsgroups | gmane.comp.db.postgresql.odbc |
|---|---|
| Message-ID | <[email protected]> |
--=_mixed 005CFBB543258426_= Content-Type: multipart/alternative; boundary="=_alternative 005CFBB743258426_=" --=_alternative 005CFBB743258426_= Content-Type: text/plain; charset="US-ASCII" Hello, I attached config.h, generated after configure command: Best regards, Andrei Yahorau From: "Inoue, Hiroshi" <[email protected]> To: [email protected], Cc: [email protected] Date: 26/06/2019 23:43 Subject: Re: psqlodbc: No memory available to store statement Hi Andrei, On 2019/06/25 21:28, [email protected] wrote: Hello PostgreSQL Community! I widely use psqlodb driver with unixODBC manager on my SLES12 linux machine. Not very long ago I updated psqlodbc driver from 10.03.0000 to the latest one 11.01.0000 . I use unixODBC-2.3.6-7.9.1.x86_64 package installed from YAST setup and configurational tool and configure, build, and install psqlodbc from the source code in the same way as for psqlodbc 10.03.0000: autoreconf -i ./configure --prefix=path_to_install --with-libpq=path_to_pg_config --with-unixodbc=path_to_odbc_config make make install In my program I use quite common ODBC functions to establish a connection, perform a query, retrieve a result: SQLConnect, SQLExecDirect, SQLFetch etc. But after I had installed psqlodbc11.01.0000 I am constantly getting the following error: No memory available to store statement *** PostgreSQL SQLSTATE = HY001 I inspected all the changes in 11.00.0000 and 11.01.0000 versions and found out that this behaviour is caused by the following commit: 1086a6 2018-05-23 | Call AC_CHECK_SIZEOF(long int) in configure.ac and always place config.h before sql....h. Due to this change, sqltypes.h of unixODBC can recognize SIZEOF_LONG_INT used in psqlodbc driver. [Hiroshi Inoue] So, in this case I see that configure script generates config.h file with defined SIZEOF_LONG_INT: #define SIZEOF_LONG_INT 0, Could you please send me config.h ? regards, Hiroshi Inoue while odcb_config --header says: #define SIZEOF_LONG_INT 8 So, in regard to this situation I have some questions. Unfortunately there is not enough information. So what was the aim of this commit? 1086a6 2018-05-23 | Call AC_CHECK_SIZEOF(long int) in configure.ac and always place config.h before sql....h. Due to this change, sqltypes.h of unixODBC can recognize SIZEOF_LONG_INT used in psqlodbc driver. [Hiroshi Inoue] Did anybody face this issue? (No memory available to store statement *** PostgreSQL SQLSTATE = HY001 ) What do I do wrong? How to resolve this issue? Best regards, Andrei Yahorau --=_alternative 005CFBB743258426_= Content-Type: text/html; charset="US-ASCII" <font size=2 face="sans-serif">Hello,<br> I attached config.h, generated after configure command:<br> <br> </font> <br> <br> <br> <br><font size=2 face="sans-serif"> Best regards, </font> <br><font size=2 face="sans-serif"> Andrei Yahorau</font> <br> <br> <br> <br><font size=1 color=#5f5f5f face="sans-serif">From: </font><font size=1 face="sans-serif">"Inoue, Hiroshi" <[email protected]></font> <br><font size=1 color=#5f5f5f face="sans-serif">To: </font><font size=1 face="sans-serif">[email protected], </font> <br><font size=1 color=#5f5f5f face="sans-serif">Cc: </font><font size=1 face="sans-serif">[email protected]</font> <br><font size=1 color=#5f5f5f face="sans-serif">Date: </font><font size=1 face="sans-serif">26/06/2019 23:43</font> <br><font size=1 color=#5f5f5f face="sans-serif">Subject: </font><font size=1 face="sans-serif">Re: psqlodbc: No memory available to store statement</font> <br> <hr noshade> <br> <br> <br><font size=3>Hi Andrei,</font> <p><font size=3>On 2019/06/25 21:28, </font><a href=mailto:[email protected]><font size=3 color=blue><u>[email protected]</u></font></a><font size=3> wrote:</font> <br><font size=2 face="sans-serif">Hello PostgreSQL Community!<br> <br> I widely use psqlodb driver with unixODBC manager on my SLES12 linux machine.<br> Not very long ago I updated psqlodbc driver from <b> 10.03.0000</b> to the latest one <b>11.01.0000 </b>.<br> I use unixODBC-2.3.6-7.9.1.x86_64 package installed from YAST setup and configurational tool and configure, build, and install psqlodbc from the source code in the same way as for psqlodbc 10.03.0000:</font><tt><font size=2 color=#2f2f2f><br> </font></tt><font size=2 color=blue face="sans-serif"><br> autoreconf -i<br> ./configure --prefix=path_to_install --with-libpq=path_to_pg_config --with-unixodbc=path_to_odbc_config<br> make<br> make install</font><font size=3 face="sans-serif"><br> </font><font size=2 face="sans-serif"><br> In my program I use quite common ODBC functions to establish a connection, perform a query, retrieve a result: <br> SQLConnect, SQLExecDirect, SQLFetch etc.</font><font size=3 face="sans-serif"><br> </font><font size=2 face="sans-serif"><br> But after I had installed psqlodbc11.01.0000 I am constantly getting the following error:</font><tt><font size=3><b><u><br> No memory available to store statement *** PostgreSQL SQLSTATE = HY001</u></b></font></tt><font size=2 face="sans-serif"><br> <br> I inspected all the changes in <b>11.00.0000</b> and <b>11.01.0000</b> versions and found out that this behaviour is caused by the following commit:</font><font size=2 color=blue face="sans-serif"><br> 1086a6 2018-05-23 | Call AC_CHECK_SIZEOF(long int) in configure.ac and always place config.h before sql....h. Due to this change, sqltypes.h of unixODBC can recognize SIZEOF_LONG_INT used in psqlodbc driver. [Hiroshi Inoue]</font><font size=2 face="sans-serif"><br> <br> So, in this case I see that configure script generates config.h file with defined SIZEOF_LONG_INT: #define SIZEOF_LONG_INT 0,</font> <br><font size=2><br> Could you please send me config.h ?<br> <br> regards,<br> Hiroshi Inoue</font><font size=3><br> </font> <br><font size=2 face="sans-serif">while <b>odcb_config --header</b> says: <br> #define SIZEOF_LONG_INT 8<br> <br> So, in regard to this situation I have some questions.<br> Unfortunately there is not enough information. So what was the aim of this commit? </font><font size=2 color=blue face="sans-serif">1086a6 2018-05-23 | Call AC_CHECK_SIZEOF(long int) in configure.ac and always place config.h before sql....h. Due to this change, sqltypes.h of unixODBC can recognize SIZEOF_LONG_INT used in psqlodbc driver. [Hiroshi Inoue]</font><font size=2 face="sans-serif"> <br> Did anybody face this issue? (</font><tt><font size=3><b><u>No memory available to store statement *** PostgreSQL SQLSTATE = HY001</u></b></font></tt><font size=2 face="sans-serif"> )<br> What do I do wrong? How to resolve this issue?</font><font size=3><br> </font><font size=2 face="sans-serif"><br> Best regards, <br> Andrei Yahorau</font> <br> --=_alternative 005CFBB743258426_=-- --=_mixed 005CFBB543258426_= Content-Type: application/zip; name="config.zip" Content-Disposition: attachment; filename="config.zip" Content-Transfer-Encoding: base64 UEsDBBQ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