diff options
author | Olivier Bertrand <bertrandop@gmail.com> | 2013-01-24 19:18:54 +0100 |
---|---|---|
committer | Olivier Bertrand <bertrandop@gmail.com> | 2013-01-24 19:18:54 +0100 |
commit | ba82edd41e29cc3f6424736b1377199a5995dbba (patch) | |
tree | c40e7b8da63891949199fe54886f81251b5abcdd /storage/connect/myutil.cpp | |
parent | 1d67d9bf2fe4660abb46a3e7c47752416753c098 (diff) | |
download | mariadb-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.cpp | 5 |
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
|