summaryrefslogtreecommitdiff
path: root/storage/connect/tabwmi.cpp
diff options
context:
space:
mode:
authorOlivier Bertrand <bertrandop@gmail.com>2013-03-11 16:52:59 +0100
committerOlivier Bertrand <bertrandop@gmail.com>2013-03-11 16:52:59 +0100
commit17fb343a5cfa32c876e36989cb2b83ec3ab672e4 (patch)
treeeecfe340fbcfddb9cd4353759e292ea852b8a73a /storage/connect/tabwmi.cpp
parentffc29ac31030c7a0bfec007440cb419b0f66dce9 (diff)
downloadmariadb-git-17fb343a5cfa32c876e36989cb2b83ec3ab672e4.tar.gz
- Add tiny integer as a supported type by CONNECT
modified: storage/connect/global.h storage/connect/ha_connect.cc storage/connect/myutil.cpp storage/connect/plgdbutl.cpp storage/connect/tabdos.cpp storage/connect/tabwmi.cpp storage/connect/valblk.cpp storage/connect/valblk.h storage/connect/value.cpp storage/connect/value.h storage/connect/xobject.cpp
Diffstat (limited to 'storage/connect/tabwmi.cpp')
-rw-r--r--storage/connect/tabwmi.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/storage/connect/tabwmi.cpp b/storage/connect/tabwmi.cpp
index e4e5dde7be5..789994ad8f7 100644
--- a/storage/connect/tabwmi.cpp
+++ b/storage/connect/tabwmi.cpp
@@ -256,10 +256,13 @@ PQRYRES WMIColumns(PGLOBAL g, char *nsp, char *cls, bool info)
case CIM_UINT32:
case CIM_BOOLEAN:
typ = TYPE_INT;
- lng = 9;
+ lng = 11;
break;
case CIM_SINT8:
case CIM_UINT8:
+ typ = TYPE_TINY;
+ lng = 4;
+ break;
case CIM_SINT16:
case CIM_UINT16:
typ = TYPE_SHORT;
@@ -268,11 +271,14 @@ PQRYRES WMIColumns(PGLOBAL g, char *nsp, char *cls, bool info)
case CIM_REAL64:
case CIM_REAL32:
prec = 2;
- case CIM_SINT64:
- case CIM_UINT64:
typ = TYPE_FLOAT;
lng = 15;
break;
+ case CIM_SINT64:
+ case CIM_UINT64:
+ typ = TYPE_BIGINT;
+ lng = 20;
+ break;
case CIM_DATETIME:
typ = TYPE_DATE;
lng = 19;