[patch] 64 bits
Nirgal <[email protected]> Sun, 4 Sep 2011 11:35:20 +0000
| Newsgroups | gmane.comp.db.mdb-tools.devel |
|---|---|
| Message-ID | <[email protected]> |
--Boundary-00=_7J2YOIuLFeHnxJi Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Attached patch fixes compilation of odbc driver, and odbc unittest on 64bits platform. http://www.nirgal.com/mdbtools/debian.squeeze/debian/patches/ http://www.nirgal.com/debian/pool/main/m/ --Boundary-00=_7J2YOIuLFeHnxJi Content-Type: text/x-patch; charset="UTF-8"; name="06_64bits.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="06_64bits.diff" uthor: Jean-Michel Vourg=C3=A8re <[email protected]> Date: 20110904 Description: Fixed 64 compilation & odbc unittest Index: mdbtools-0.6~pre1/src/odbc/odbc.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =2D-- mdbtools-0.6~pre1.orig/src/odbc/odbc.c +++ mdbtools-0.6~pre1/src/odbc/odbc.c @@ -1377,8 +1377,8 @@ SQLUSMALLINT icol, SQLSMALLINT fCType, SQLPOINTER rgbValue, =2D SQLINTEGER cbValueMax, =2D SQLINTEGER FAR *pcbValue) + SQLLEN cbValueMax, + SQLLEN FAR *pcbValue) { struct _hstmt *stmt; struct _hdbc *dbc; Index: mdbtools-0.6~pre1/src/odbc/unittest.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =2D-- mdbtools-0.6~pre1.orig/src/odbc/unittest.c +++ mdbtools-0.6~pre1/src/odbc/unittest.c @@ -158,7 +158,7 @@ if (retcode =3D=3D SQL_SUCCESS || retcode =3D=3D SQL_SUCCESS_WITH_INFO)=20 { UCHAR szCol1[60]; =2D SQLINTEGER length; + SQLLEN length; =20 printf("excecuting first statement\n"); retcode =3D SQLExecute(hstmt); =20 --Boundary-00=_7J2YOIuLFeHnxJi Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free "Love Thy Logs" t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev --Boundary-00=_7J2YOIuLFeHnxJi Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ mdbtools-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mdbtools-dev --Boundary-00=_7J2YOIuLFeHnxJi--