summaryrefslogtreecommitdiffstats
path: root/databases/myodbc
diff options
context:
space:
mode:
authorbmah <bmah@FreeBSD.org>2002-03-07 18:12:41 +0000
committerbmah <bmah@FreeBSD.org>2002-03-07 18:12:41 +0000
commita2ab7647554e9169743d7abe765f44a9e1a062ac (patch)
treee29cd2fde2a0c9049f633ffaeb489920066bc9ca /databases/myodbc
parenta1c8e8289a5c6bbb852e41ed3a497c652939b7c1 (diff)
downloadFreeBSD-ports-a2ab7647554e9169743d7abe765f44a9e1a062ac.zip
FreeBSD-ports-a2ab7647554e9169743d7abe765f44a9e1a062ac.tar.gz
Compatibility patch so that ODBCVER=0x0300 works on 4-STABLE.
Approved by: "Erik H. Bakke" <ebakke@trolltech.com> (maintainer)
Diffstat (limited to 'databases/myodbc')
-rw-r--r--databases/myodbc/files/patch-results.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/databases/myodbc/files/patch-results.c b/databases/myodbc/files/patch-results.c
new file mode 100644
index 0000000..3f8b6b8
--- /dev/null
+++ b/databases/myodbc/files/patch-results.c
@@ -0,0 +1,19 @@
+--- results.c 4 Dec 2001 18:47:05 -0000 1.1
++++ results.c 2 Mar 2002 18:18:21 -0000 1.2
+@@ -743,14 +743,14 @@
+ case SQL_C_SBIGINT:
+ {
+ if (rgbValue)
+- *((longlong*) rgbValue)= atoll(value);
++ *((longlong*) rgbValue)= strtoll(value, NULL, 10);
+ *pcbValue=sizeof(longlong);
+ break;
+ }
+ case SQL_C_UBIGINT:
+ {
+ if (rgbValue)
+- *((ulonglong*) rgbValue)= (ulonglong) atoll(value);
++ *((ulonglong*) rgbValue)= strtoull(value, NULL, 10);
+ *pcbValue=sizeof(ulonglong);
+ break;
+ }
OpenPOWER on IntegriCloud