summaryrefslogtreecommitdiff
path: root/databases/mysql-connector-odbc/files/patch-driver__execute.c
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2014-07-29 17:12:47 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2014-07-29 17:12:47 +0000
commit08a006d08a4c35d2c3ecc9a3d10cf7fd14661a84 (patch)
tree0cfc4f0736babb895eb97a65c6defe632a0249c7 /databases/mysql-connector-odbc/files/patch-driver__execute.c
parenteditors/fte: update to 20110708 (diff)
Rename all patches that contain '::' as a path separator, and use
'__' instead.
Notes
Notes: svn path=/head/; revision=363362
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: