summaryrefslogtreecommitdiff
path: root/databases/mysql-connector-odbc/files/patch-driver::execute.c
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2012-02-11 18:59:15 +0000
committerPawel Pekala <pawel@FreeBSD.org>2012-02-11 18:59:15 +0000
commit477b9d157c5580d96181852fc9c7ce8a95bd7c81 (patch)
tree3c5583c44eecbd0ef8d4f4126954d0a1221208fb /databases/mysql-connector-odbc/files/patch-driver::execute.c
parentWhitespace fixes. (diff)
- Update to version 5.1.9 [1]
- Fix build when WITH_IODBC=true PR: ports/161832 [1] SUbmitted by: maintainer
Notes
Notes: svn path=/head/; revision=290936
Diffstat (limited to 'databases/mysql-connector-odbc/files/patch-driver::execute.c')
-rw-r--r--databases/mysql-connector-odbc/files/patch-driver::execute.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/databases/mysql-connector-odbc/files/patch-driver::execute.c b/databases/mysql-connector-odbc/files/patch-driver::execute.c
new file mode 100644
index 000000000000..f191b08db140
--- /dev/null
+++ b/databases/mysql-connector-odbc/files/patch-driver::execute.c
@@ -0,0 +1,22 @@
+--- driver/execute.c.orig 2011-10-04 23:19:00.000000000 +0300
++++ driver/execute.c 2011-10-15 12:07:45.000000000 +0300
+@@ -424,11 +424,19 @@
+ data= buff;
+ break;
+ case SQL_C_SBIGINT:
++#ifdef MARIADB_BASE_VERSION
++ length= longlong2str(*((longlong*) data),buff, -10, 1) - buff;
++#else
+ length= longlong2str(*((longlong*) data),buff, -10) - buff;
++#endif
+ data= buff;
+ break;
+ case SQL_C_UBIGINT:
++#ifdef MARIADB_BASE_VERSION
++ length= longlong2str(*((ulonglong*) data),buff, 10, 1) - buff;
++#else
+ length= longlong2str(*((ulonglong*) data),buff, 10) - buff;
++#endif
+ data= buff;
+ break;
+ case SQL_C_FLOAT: