ports/databases/mysql-connector-odbc/files/patch-driver__execute.c
Pawel Pekala 5e7cac6b27 - Update to version 5.3.4 [1]
- Mark ignored for versions 51 and 55 of mysql [1]
- Move things to proper places in Makefile
- Remove PLIST_SUB, no subs needed
- Define DOCS option, port uses PORTDOCS
- Switch to PLIST_FILES, port installs only 3 files
- Remove Author tag from pkg-descr file

PR:		197348 [1]
Submitted by:	timp87@gmail.com [1]
Approved by:	maintainer timeout
2015-02-21 15:13:15 +00:00

22 lines
703 B
C

--- driver/execute.c.orig 2014-11-05 14:41:16.000000000 +0300
+++ driver/execute.c 2014-11-05 14:44:10.000000000 +0300
@@ -563,11 +563,19 @@
*res= buff;
break;
case SQL_C_SBIGINT:
+#ifdef MARIADB_BASE_VERSION
+ *length= longlong2str(*((longlong*) *res), buff, -10, 1) - buff;
+#else
*length= longlong2str(*((longlong*) *res), buff, -10) - buff;
+#endif
*res= buff;
break;
case SQL_C_UBIGINT:
+#ifdef MARIADB_BASE_VERSION
+ *length= longlong2str(*((ulonglong*) *res), buff, 10, 1) - buff;
+#else
*length= longlong2str(*((ulonglong*) *res), buff, 10) - buff;
+#endif
*res= buff;
break;
case SQL_C_FLOAT: