summaryrefslogtreecommitdiff
path: root/storage/connect/myutil.cpp
diff options
context:
space:
mode:
authorOlivier Bertrand <bertrandop@gmail.com>2013-01-24 19:18:54 +0100
committerOlivier Bertrand <bertrandop@gmail.com>2013-01-24 19:18:54 +0100
commitba82edd41e29cc3f6424736b1377199a5995dbba (patch)
treec40e7b8da63891949199fe54886f81251b5abcdd /storage/connect/myutil.cpp
parent1d67d9bf2fe4660abb46a3e7c47752416753c098 (diff)
downloadmariadb-git-ba82edd41e29cc3f6424736b1377199a5995dbba.tar.gz
Fix problems with ODBC raised by Adding the type TYPE_BIGINT (longlong).
Diffstat (limited to 'storage/connect/myutil.cpp')
-rw-r--r--storage/connect/myutil.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/storage/connect/myutil.cpp b/storage/connect/myutil.cpp
index 5d6ef75292e..6c08aacc683 100644
--- a/storage/connect/myutil.cpp
+++ b/storage/connect/myutil.cpp
@@ -48,6 +48,8 @@ int MYSQLtoPLG(char *typname)
!stricmp(typname, "time") || !stricmp(typname, "timestamp") ||
!stricmp(typname, "year"))
type = TYPE_DATE;
+ else if (!stricmp(typname, "bigint") || !stricmp(typname, "longlong"))
+ type = TYPE_BIGINT;
else
type = TYPE_ERROR;
@@ -77,6 +79,9 @@ enum enum_field_types PLGtoMYSQL(int type, bool gdf)
case TYPE_STRING:
mytype = MYSQL_TYPE_VARCHAR;
break;
+ case TYPE_BIGINT:
+ mytype = MYSQL_TYPE_LONGLONG;
+ break;
default:
mytype = MYSQL_TYPE_NULL;
} // endswitch mytype