diff options
author | bmah <bmah@FreeBSD.org> | 2002-03-08 02:12:41 +0800 |
---|---|---|
committer | bmah <bmah@FreeBSD.org> | 2002-03-08 02:12:41 +0800 |
commit | a2ab7647554e9169743d7abe765f44a9e1a062ac (patch) | |
tree | e29cd2fde2a0c9049f633ffaeb489920066bc9ca /databases | |
parent | a1c8e8289a5c6bbb852e41ed3a497c652939b7c1 (diff) | |
download | freebsd-ports-gnome-a2ab7647554e9169743d7abe765f44a9e1a062ac.tar.gz freebsd-ports-gnome-a2ab7647554e9169743d7abe765f44a9e1a062ac.tar.zst freebsd-ports-gnome-a2ab7647554e9169743d7abe765f44a9e1a062ac.zip |
Compatibility patch so that ODBCVER=0x0300 works on 4-STABLE.
Approved by: "Erik H. Bakke" <ebakke@trolltech.com> (maintainer)
Diffstat (limited to 'databases')
-rw-r--r-- | databases/myodbc/files/patch-results.c | 19 | ||||
-rw-r--r-- | databases/mysql-connector-odbc/files/patch-results.c | 19 |
2 files changed, 38 insertions, 0 deletions
diff --git a/databases/myodbc/files/patch-results.c b/databases/myodbc/files/patch-results.c new file mode 100644 index 000000000000..3f8b6b8da42a --- /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; + } diff --git a/databases/mysql-connector-odbc/files/patch-results.c b/databases/mysql-connector-odbc/files/patch-results.c new file mode 100644 index 000000000000..3f8b6b8da42a --- /dev/null +++ b/databases/mysql-connector-odbc/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; + } |