diff options
author | Bruce A. Mah <bmah@FreeBSD.org> | 2002-03-07 18:12:41 +0000 |
---|---|---|
committer | Bruce A. Mah <bmah@FreeBSD.org> | 2002-03-07 18:12:41 +0000 |
commit | 456d405a6fefbf454f4c28b7227c7190a976cfaa (patch) | |
tree | 66b6c58bfcc4b3a9dcddfc86c263fcf17fb076fc /databases | |
parent | ec2eacea1a95ae78fbc880faa94aeaf514522535 (diff) | |
download | ports-456d405a6fefbf454f4c28b7227c7190a976cfaa.tar.gz ports-456d405a6fefbf454f4c28b7227c7190a976cfaa.zip |
Notes
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; + } |