unixODBC, psqlodbcw.so, and Wine...

This is a multipart message in MIME format.
--=_alternative 0078E5A9852576B2_=
Content-Type: text/plain; charset="US-ASCII"

I have been beating my head over this all day and I'm not turning anything
up at Google. I'm basically trying to get an ODBC app to run in Wine and
use the PostgreSQL ODBC driver configured in unixODBC. Here is a brief
rundown of my problem:

First, to prove I have unixODBC set up properly:

* Run /usr/bin/odbctest
* Select the Conn -> Full Connect ... menu item
* Select my Data Source, enter a User and Password, and click OK
* "Full Connect Succeeded" is displayed (yay!)

** Note that this works regardless of whether I choose the ANSI or Unicode
ODBC driver.

Now, from within Wine, I run a very similar test:

* Run Unicode ODBCTEST.EXE from
http://www.datadirect.com/support/downloads/tools/index.ssp
* Select the Conn -> Full Connect ... menu item
* Select my Data Source, enter the exact same User and Password, and
click OK
* This fails with the text "[unixODBC]c"

** Note that I can connect via Wine if I use the ANSI ODBC driver, but
when I try to access a Unicode Postgres database, there are errors that
invalid data types are being used

Everything looks correct in the ODBC tracing output. I've tried a few
other scenarios, but this is the most direct test case to show you. In
all cases, the Unicode driver only passes a single character back to the
app running under Wine. I have been trying to turn on Postgres specific
logging, but I can't seem to figure out how. I also considered that maybe
the Unicode encoding between Wine and unixODBC may be a problem, but I
didn't see any way to check or change this.

Please help! I'm willing to put more effort in to document this better.
At this point I'm not sure if its a Postgres error, unixODBC error, or a
Wine error. Doing this exact same test with FreeTDS and MDBTools had
errors as well, although the connections did succeed.

I'm running 32-bit Ubuntu 9.10 (Karmic). I have updated Wine to the
latest available in the Wine PPA with no change in behavior.

Jon
--=_alternative 0078E5A9852576B2_=
Content-Type: text/html; charset="US-ASCII"

<font size=2 face="sans-serif">I have been beating my head over this all
day and I'm not turning anything up at Google.  I'm basically trying
to get an ODBC app to run in Wine and use the PostgreSQL ODBC driver configured
in unixODBC.  Here is a brief rundown of my problem:</font>
<br>
<br><font size=2 face="sans-serif">First, to prove I have unixODBC set
up properly:</font>
<br>
<br><font size=2 face="sans-serif">  * Run /usr/bin/odbctest</font>
<br><font size=2 face="sans-serif">  * Select the Conn -> Full
Connect ... menu item</font>
<br><font size=2 face="sans-serif">  * Select my Data Source, enter
a User and Password, and click OK</font>
<br><font size=2 face="sans-serif">  * "Full Connect Succeeded"
is displayed (yay!)</font>
<br>
<br><font size=2 face="sans-serif">** Note that this works regardless of
whether I choose the ANSI or Unicode ODBC driver.</font>
<br>
<br><font size=2 face="sans-serif">Now, from within Wine, I run a very
similar test:</font>
<br>
<br><font size=2 face="sans-serif">   * Run Unicode ODBCTEST.EXE
from </font><a href=http://www.datadirect.com/support/downloads/tools/index.ssp><font size=2 face="sans-serif">http://www.datadirect.com/support/downloads/tools/index.ssp</font></a>
<br><font size=2 face="sans-serif">   * Select the Conn ->
Full Connect ... menu item</font>
<br><font size=2 face="sans-serif">   * Select my Data Source,
enter the exact same User and Password, and click OK</font>
<br><font size=2 face="sans-serif">   * This fails with the text
"[unixODBC]c"</font>
<br>
<br><font size=2 face="sans-serif">** Note that I can connect via Wine
if I use the ANSI ODBC driver, but when I try to access a Unicode Postgres
database, there are errors that invalid data types are being used</font>
<br>
<br><font size=2 face="sans-serif">Everything looks correct in the ODBC
tracing output.  I've tried a few other scenarios, but this is the
most direct test case to show you.  In all cases, the Unicode driver
only passes a single character back to the app running under Wine.  I
have been trying to turn on Postgres specific logging, but I can't seem
to figure out how.  I also considered that maybe the Unicode encoding
between Wine and unixODBC may be a problem, but I didn't see any way to
check or change this.</font>
<br>
<br><font size=2 face="sans-serif">Please help!  I'm willing to put
more effort in to document this better.  At this point I'm not sure
if its a Postgres error, unixODBC error, or a Wine error.  Doing this
exact same test with FreeTDS and MDBTools had errors as well, although
the connections did succeed.</font>
<br>
<br><font size=2 face="sans-serif">I'm running 32-bit Ubuntu 9.10 (Karmic).
 I have updated Wine to the latest available in the Wine PPA with
no change in behavior.</font>
<br>
<br><font size=2 face="sans-serif">Jon</font>
--=_alternative 0078E5A9852576B2_=--
Raiford [ Do, 21 Januar 2010 23:00 ] [ ID #2029437 ]

Re: unixODBC, psqlodbcw.so, and Wine...

--0014852b310abbd63c047db41f5e
Content-Type: text/plain; charset=ISO-8859-1

this looks like the issue I noted to the list. the ucs-2 data being passed
to the unixodbc driver manager was not working with the driver. it was
suggested that I re-build it having edited the config.h file #undef
SQL_WCHAR_CONVERT which did the trick.


On Thu, Jan 21, 2010 at 5:00 PM, <Raiford [at] labware.com> wrote:

> I have been beating my head over this all day and I'm not turning anything
> up at Google. I'm basically trying to get an ODBC app to run in Wine and
> use the PostgreSQL ODBC driver configured in unixODBC. Here is a brief
> rundown of my problem:
>
> First, to prove I have unixODBC set up properly:
>
> * Run /usr/bin/odbctest
> * Select the Conn -> Full Connect ... menu item
> * Select my Data Source, enter a User and Password, and click OK
> * "Full Connect Succeeded" is displayed (yay!)
>
> ** Note that this works regardless of whether I choose the ANSI or Unicode
> ODBC driver.
>
> Now, from within Wine, I run a very similar test:
>
> * Run Unicode ODBCTEST.EXE from
> http://www.datadirect.com/support/downloads/tools/index.ssp
> * Select the Conn -> Full Connect ... menu item
> * Select my Data Source, enter the exact same User and Password, and
> click OK
> * This fails with the text "[unixODBC]c"
>
> ** Note that I can connect via Wine if I use the ANSI ODBC driver, but when
> I try to access a Unicode Postgres database, there are errors that invalid
> data types are being used
>
> Everything looks correct in the ODBC tracing output. I've tried a few
> other scenarios, but this is the most direct test case to show you. In all
> cases, the Unicode driver only passes a single character back to the app
> running under Wine. I have been trying to turn on Postgres specific
> logging, but I can't seem to figure out how. I also considered that maybe
> the Unicode encoding between Wine and unixODBC may be a problem, but I
> didn't see any way to check or change this.
>
> Please help! I'm willing to put more effort in to document this better.
> At this point I'm not sure if its a Postgres error, unixODBC error, or a
> Wine error. Doing this exact same test with FreeTDS and MDBTools had errors
> as well, although the connections did succeed.
>
> I'm running 32-bit Ubuntu 9.10 (Karmic). I have updated Wine to the latest
> available in the Wine PPA with no change in behavior.
>
> Jon

--0014852b310abbd63c047db41f5e
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

this looks like the issue I noted to the list. the ucs-2 data being passed =
to the unixodbc driver manager was not working with the driver. it was sugg=
ested that I re-build it having edited the config.h file #undef SQL_WCHAR_C=
ONVERT which did the trick.<br>
<br><br><div class=3D"gmail_quote">On Thu, Jan 21, 2010 at 5:00 PM, <span =
dir=3D"ltr"><<a href=3D"mailto:Raiford [at] labware.com" target=3D"_blank">Ra=
iford [at] labware.com</a>></span> wrote:<br><blockquote class=3D"gmail_quote=
" style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0=
..8ex; padding-left: 1ex;">

<font size=3D"2" face=3D"sans-serif">I have been beating my head over this =
all
day and I'm not turning anything up at Google. =A0I'm basically try=
ing
to get an ODBC app to run in Wine and use the PostgreSQL ODBC driver config=
ured
in unixODBC. =A0Here is a brief rundown of my problem:</font>
<br>
<br><font size=3D"2" face=3D"sans-serif">First, to prove I have unixODBC se=
t
up properly:</font>
<br>
<br><font size=3D"2" face=3D"sans-serif">=A0 * Run /usr/bin/odbctest</font>
<br><font size=3D"2" face=3D"sans-serif">=A0 * Select the Conn -> Full
Connect ... menu item</font>
<br><font size=3D"2" face=3D"sans-serif">=A0 * Select my Data Source, enter
a User and Password, and click OK</font>
<br><font size=3D"2" face=3D"sans-serif">=A0 * "Full Connect Succeeded=
"
is displayed (yay!)</font>
<br>
<br><font size=3D"2" face=3D"sans-serif">** Note that this works regardless=
of
whether I choose the ANSI or Unicode ODBC driver.</font>
<br>
<br><font size=3D"2" face=3D"sans-serif">Now, from within Wine, I run a ver=
y
similar test:</font>
<br>
<br><font size=3D"2" face=3D"sans-serif">=A0 =A0* Run Unicode ODBCTEST.EXE
from </font><a href=3D"http://www.datadirect.com/support/downloads/tools/in=
dex.ssp" target=3D"_blank"><font size=3D"2" face=3D"sans-serif">http://www.=
datadirect.com/support/downloads/tools/index.ssp</font></a>
<br><font size=3D"2" face=3D"sans-serif">=A0 =A0* Select the Conn ->
Full Connect ... menu item</font>
<br><font size=3D"2" face=3D"sans-serif">=A0 =A0* Select my Data Source,
enter the exact same User and Password, and click OK</font>
<br><font size=3D"2" face=3D"sans-serif">=A0 =A0* This fails with the text
"[unixODBC]c"</font>
<br>
<br><font size=3D"2" face=3D"sans-serif">** Note that I can connect via Win=
e
if I use the ANSI ODBC driver, but when I try to access a Unicode Postgres
database, there are errors that invalid data types are being used</font>
<br>
<br><font size=3D"2" face=3D"sans-serif">Everything looks correct in the OD=
BC
tracing output. =A0I've tried a few other scenarios, but this is the
most direct test case to show you. =A0In all cases, the Unicode driver
only passes a single character back to the app running under Wine. =A0I
have been trying to turn on Postgres specific logging, but I can't seem
to figure out how. =A0I also considered that maybe the Unicode encoding
between Wine and unixODBC may be a problem, but I didn't see any way to
check or change this.</font>
<br>
<br><font size=3D"2" face=3D"sans-serif">Please help! =A0I'm willing to=
put
more effort in to document this better. =A0At this point I'm not sure
if its a Postgres error, unixODBC error, or a Wine error. =A0Doing this
exact same test with FreeTDS and MDBTools had errors as well, although
the connections did succeed.</font>
<br>
<br><font size=3D"2" face=3D"sans-serif">I'm running 32-bit Ubuntu 9.10=
(Karmic).
=A0I have updated Wine to the latest available in the Wine PPA with
no change in behavior.</font>
<br>
<br><font size=3D"2" face=3D"sans-serif">Jon</font></blockquote></div><br>

--0014852b310abbd63c047db41f5e--
the6campbells [ Do, 21 Januar 2010 23:21 ] [ ID #2029438 ]

Re: unixODBC, psqlodbcw.so, and Wine...

This is a multipart message in MIME format.
--=_alternative 0051AD9C852576B3_=
Content-Type: text/plain; charset="US-ASCII"

Are you saying I need to rebuild the Postgres driver or unixODBC? Looking
at the sources for both, it looks like you are talking about Postgres -
its the only one with a config.h.in file. I see #undef SQL_WCHART_CONVERT
is already in the file. Are you suggesting I remove this reference? Or
are you suggesting that I add an additional #undef SQL_WCHAR_CONVERT?

Thanks for your help.. I would have never thought of doing something like
this :)

Jon




From:
the6campbells <the6campbells [at] gmail.com>
To:
Raiford [at] labware.com
Cc:
pgsql-odbc [at] postgresql.org
Date:
01/21/2010 05:21 PM
Subject:
Re: [ODBC] unixODBC, psqlodbcw.so, and Wine...



this looks like the issue I noted to the list. the ucs-2 data being passed
to the unixodbc driver manager was not working with the driver. it was
suggested that I re-build it having edited the config.h file #undef
SQL_WCHAR_CONVERT which did the trick.


On Thu, Jan 21, 2010 at 5:00 PM, <Raiford [at] labware.com> wrote:
I have been beating my head over this all day and I'm not turning anything
up at Google. I'm basically trying to get an ODBC app to run in Wine and
use the PostgreSQL ODBC driver configured in unixODBC. Here is a brief
rundown of my problem:

First, to prove I have unixODBC set up properly:

* Run /usr/bin/odbctest
* Select the Conn -> Full Connect ... menu item
* Select my Data Source, enter a User and Password, and click OK
* "Full Connect Succeeded" is displayed (yay!)

** Note that this works regardless of whether I choose the ANSI or Unicode
ODBC driver.

Now, from within Wine, I run a very similar test:

* Run Unicode ODBCTEST.EXE from
http://www.datadirect.com/support/downloads/tools/index.ssp
* Select the Conn -> Full Connect ... menu item
* Select my Data Source, enter the exact same User and Password, and
click OK
* This fails with the text "[unixODBC]c"

** Note that I can connect via Wine if I use the ANSI ODBC driver, but
when I try to access a Unicode Postgres database, there are errors that
invalid data types are being used

Everything looks correct in the ODBC tracing output. I've tried a few
other scenarios, but this is the most direct test case to show you. In
all cases, the Unicode driver only passes a single character back to the
app running under Wine. I have been trying to turn on Postgres specific
logging, but I can't seem to figure out how. I also considered that maybe
the Unicode encoding between Wine and unixODBC may be a problem, but I
didn't see any way to check or change this.

Please help! I'm willing to put more effort in to document this better.
At this point I'm not sure if its a Postgres error, unixODBC error, or a
Wine error. Doing this exact same test with FreeTDS and MDBTools had
errors as well, although the connections did succeed.

I'm running 32-bit Ubuntu 9.10 (Karmic). I have updated Wine to the
latest available in the Wine PPA with no change in behavior.

Jon


--=_alternative 0051AD9C852576B3_=
Content-Type: text/html; charset="US-ASCII"

<font size=2 face="sans-serif">Are you saying I need to rebuild the Postgres
driver or unixODBC?  Looking at the sources for both, it looks like
you are talking about Postgres - its the only one with a config.h.in file.
 I see #undef SQL_WCHART_CONVERT is already in the file.  Are
you suggesting I remove this reference?  Or are you suggesting that
I add an additional #undef SQL_WCHAR_CONVERT?</font>
<br>
<br><font size=2 face="sans-serif">Thanks for your help.. I would have
never thought of doing something like this :)</font>
<br>
<br><font size=2 face="sans-serif">Jon</font>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">From:</font>
<td><font size=1 face="sans-serif">the6campbells <the6campbells [at] gmail.com></font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">To:</font>
<td><font size=1 face="sans-serif">Raiford [at] labware.com</font>
<tr>
<td valign=top><font size=1 color=#5f5f5f face="sans-serif">Cc:</font>
<td><font size=1 face="sans-serif">pgsql-odbc [at] postgresql.org</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Date:</font>
<td><font size=1 face="sans-serif">01/21/2010 05:21 PM</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Subject:</font>
<td><font size=1 face="sans-serif">Re: [ODBC] unixODBC, psqlodbcw.so, and
Wine...</font></table>
<br>
<hr noshade>
<br>
<br>
<br><font size=3>this looks like the issue I noted to the list. the ucs-2
data being passed to the unixodbc driver manager was not working with the
driver. it was suggested that I re-build it having edited the config.h
file #undef SQL_WCHAR_CONVERT which did the trick.<br>
<br>
</font>
<br><font size=3>On Thu, Jan 21, 2010 at 5:00 PM, <</font><a href=mailto:Raiford [at] labware.com target=_blank><font size=3 color=blue><u>Raiford [at] labware.com</u></font></a><font size=3>>
wrote:</font>
<br><font size=2 face="sans-serif">I have been beating my head over this
all day and I'm not turning anything up at Google.  I'm basically
trying to get an ODBC app to run in Wine and use the PostgreSQL ODBC driver
configured in unixODBC.  Here is a brief rundown of my problem:</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
First, to prove I have unixODBC set up properly:</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
  * Run /usr/bin/odbctest</font><font size=3> </font><font size=2 face="sans-serif"><br>
  * Select the Conn -> Full Connect ... menu item</font><font size=3>
</font><font size=2 face="sans-serif"><br>
  * Select my Data Source, enter a User and Password, and click OK</font><font size=3>
</font><font size=2 face="sans-serif"><br>
  * "Full Connect Succeeded" is displayed (yay!)</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
** Note that this works regardless of whether I choose the ANSI or Unicode
ODBC driver.</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
Now, from within Wine, I run a very similar test:</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
   * Run Unicode ODBCTEST.EXE from </font><a href=http://www.datadirect.com/support/downloads/tools/index.ssp target=_blank><font size=2 color=blue face="sans-serif"><u>http://www.datadirect.com/support/downloads/tools/index.ssp</u></font></a><font size=3>
</font><font size=2 face="sans-serif"><br>
   * Select the Conn -> Full Connect ... menu item</font><font size=3>
</font><font size=2 face="sans-serif"><br>
   * Select my Data Source, enter the exact same User and Password,
and click OK</font><font size=3> </font><font size=2 face="sans-serif"><br>
   * This fails with the text "[unixODBC]c"</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
** Note that I can connect via Wine if I use the ANSI ODBC driver, but
when I try to access a Unicode Postgres database, there are errors that
invalid data types are being used</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
Everything looks correct in the ODBC tracing output.  I've tried a
few other scenarios, but this is the most direct test case to show you.
 In all cases, the Unicode driver only passes a single character back
to the app running under Wine.  I have been trying to turn on Postgres
specific logging, but I can't seem to figure out how.  I also considered
that maybe the Unicode encoding between Wine and unixODBC may be a problem,
but I didn't see any way to check or change this.</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
Please help!  I'm willing to put more effort in to document this better.
 At this point I'm not sure if its a Postgres error, unixODBC error,
or a Wine error.  Doing this exact same test with FreeTDS and MDBTools
had errors as well, although the connections did succeed.</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
I'm running 32-bit Ubuntu 9.10 (Karmic).  I have updated Wine to the
latest available in the Wine PPA with no change in behavior.</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
Jon</font>
<br>
<br>
--=_alternative 0051AD9C852576B3_=--
Raiford [ Fr, 22 Januar 2010 15:52 ] [ ID #2029572 ]
Datenbanken » gmane.comp.db.postgresql.odbc » unixODBC, psqlodbcw.so, and Wine...

Vorheriges Thema: [ psqlodbc-Bugs-1010758 ] Potential memory leak with savepoints and cursors
Nächstes Thema: buffer overflow in 08.04.0100 und 08.04.0200?