Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

078274121, info0a ip, should prodicers of software_based services be held liable or not liable for economic injuries, should producers of soft ware based services such as ATMs be held liable for economic injuries suffered when their systems fail?, nisc wwwxxx, wwwxxx0cm, should producers of software-based services, such as atms, be held liable for economic injuries suffered when their systems fail?, wwwxxx0cm, www.webdp.net, Event 9 IIS log failed to write entry

Links

XODOX
Impressum

#1: Mac OS 10.4 (Tiger) compatible myodbc

Posted on 2005-04-20 01:41:50 by BBrown

------_=_NextPart_001_01C54539.5B7E402D
Content-Type: multipart/alternative;
boundary="----_=_NextPart_002_01C54539.5B7E402D"


------_=_NextPart_002_01C54539.5B7E402D
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I built myodbc on OS 10.3 with the calls to GetPrivateProfileString =
removed for Mac OS X and replaced with SQLGetPrivateProfileString. This =
allows it to run under Tiger with the version of iodbc that Apple ships. =
So far in my testing it seems to work fine on Mac OS 10.4 and 10.3. I =
am not concerned with 10.2 compatibility since we generally support only =
two versions of the OS, and you are also providing a separate driver for =
10.2. My guess is that GetPrivateProfileString was necessary in 10.2 =
and before, but is no longer needed and SQLGetPrivateProfileString now =
works.

I used the 3.51.11 source distribution from dev.mysql.com and linking it =
to the 4.1.11 binaries. (Thank you to Peter Harvey for his very useful =
instructions in README.osx.)

I also built myodbc on 10.4, but I had to use the iodbc headers from my =
10.3 system because the new ones are incompatible - they use SQLLEN vs. =
SQLINTEGER in SQLPutData and other similar incompatibilities (that don't =
seem to change the length or signedness except for 64 bit Windows).

When I attempt to run the automated tests in the test directory I get =
failures, however, they do not seem to be related to the driver, but are =
problems with the tests themselves.

- my_col_length.c drops a table that doesn't exist, then expects the =
error to be success.
- my_keys.c retrieves rows and does the tests for values in the wrong =
order
- my_dyn_cursor.c deletes a table before it's finished with it
....?

Are these fixed in a more recent version of the source?

My patches are enclosed. These are really simple changes that remove =
the special #ifdefs and comments for Mac OS related to =
GetPrivateProfileString.

<<myodbcinst.patch>> <<util.patch>>=20

Brooks R. Brown
Software Engineer
Extensis, Inc.
<http://www.extensis.com/>
phone: 503.274.2020 x130
email: bbrown@extensis.com

Empowering digital assets



------_=_NextPart_002_01C54539.5B7E402D
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.5.7226.0">
<TITLE>Mac OS 10.4 (Tiger) compatible myodbc</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=3D2 FACE=3D"Arial">I built myodbc on OS 10.3 with the =
calls to GetPrivateProfileString removed for Mac OS X and replaced with =
SQLGetPrivateProfileString.&nbsp; This allows it to run under Tiger with =
the version of iodbc that Apple ships.&nbsp; So far in my testing it =
seems to work fine on Mac OS 10.4 and 10.3.&nbsp; I am not concerned =
with 10.2 compatibility since we generally support only two versions of =
the OS, and you are also providing a separate driver for 10.2.&nbsp; My =
guess is that GetPrivateProfileString was necessary in 10.2 and before, =
but is no longer needed and SQLGetPrivateProfileString now =
works.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I used the 3.51.11 source distribution =
from dev.mysql.com and linking it to the 4.1.11 binaries.&nbsp; (Thank =
you to Peter Harvey for his very useful instructions in =
README.osx.)</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I also built myodbc on 10.4, but I had =
to use the iodbc headers from my 10.3 system because the new ones are =
incompatible - they use SQLLEN vs. SQLINTEGER in SQLPutData and other =
similar incompatibilities (that don't seem to change the length or =
signedness except for 64 bit Windows).</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">When I attempt to run the automated =
tests in the test directory I get failures, however, they do not seem to =
be related to the driver, but are problems with the tests =
themselves.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">- my_col_length.c drops a table that =
doesn't exist, then expects the error to be success.</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">- my_keys.c retrieves rows and does =
the tests for values in the wrong order</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">- my_dyn_cursor.c deletes a table =
before it's finished with it</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">...?</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Are these fixed in a more recent =
version of the source?</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">My patches are enclosed.&nbsp; These =
are really simple changes that remove the special #ifdefs and comments =
for Mac OS related to GetPrivateProfileString.</FONT></P>

<P><FONT FACE=3D"Arial" SIZE=3D2 COLOR=3D"#000000"> =
&lt;&lt;myodbcinst.patch&gt;&gt; </FONT><FONT FACE=3D"Arial" SIZE=3D2 =
COLOR=3D"#000000"> &lt;&lt;util.patch&gt;&gt; </FONT>
</P>

<P><B><FONT SIZE=3D2 FACE=3D"Arial">Brooks R. Brown</FONT></B>

<BR><FONT COLOR=3D"#999999" SIZE=3D2 FACE=3D"Arial">Software =
Engineer</FONT>

<BR><FONT COLOR=3D"#999999" SIZE=3D2 FACE=3D"Arial">Extensis, =
Inc.</FONT>

<BR><FONT COLOR=3D"#999999" SIZE=3D2 FACE=3D"Arial">&lt;<A =
HREF=3D"http://www.extensis.com/">http://www.extensis.com/</A>&gt;</FONT>=


<BR><FONT COLOR=3D"#999999" SIZE=3D2 FACE=3D"Arial">phone: 503.274.2020 =
x130</FONT>

<BR><FONT COLOR=3D"#999999" SIZE=3D2 FACE=3D"Arial">email: =
bbrown@extensis.com</FONT>
</P>

<P><FONT COLOR=3D"#FF0000" SIZE=3D2 FACE=3D"Arial">Empowering digital =
assets</FONT>
</P>
<BR>

</BODY>
</HTML>
------_=_NextPart_002_01C54539.5B7E402D--


------_=_NextPart_001_01C54539.5B7E402D
Content-Type: text/plain; charset=us-ascii

--
MySQL ODBC Mailing List
For list archives: http://lists.mysql.com/myodbc
To unsubscribe: http://lists.mysql.com/myodbc?unsub=gcdmo-myodbc@m.gmane.org
------_=_NextPart_001_01C54539.5B7E402D--

Report this message