diff options
author | Olivier Bertrand <bertrandop@gmail.com> | 2013-11-06 18:22:09 +0100 |
---|---|---|
committer | Olivier Bertrand <bertrandop@gmail.com> | 2013-11-06 18:22:09 +0100 |
commit | 056f35d0c136af4437344d4fbce80172e6d96817 (patch) | |
tree | 954befda500a4f7b1fb3b6d5b1e814a7077c3d96 /storage/connect/tabwmi.cpp | |
parent | f1325549e9eca1311435255854da0a93923eff9b (diff) | |
download | mariadb-git-056f35d0c136af4437344d4fbce80172e6d96817.tar.gz |
- Move all enum AMT definitions in one place (plgdbsem.h)
modified:
storage/connect/filamtxt.h
storage/connect/filamzip.h
storage/connect/myconn.h
storage/connect/plgdbsem.h
storage/connect/taboccur.h
storage/connect/tabutil.h
storage/connect/tabxcl.h
- Add the possibility to execute several commands in one query of
an EXECSRC tables (using ...where command in (cmd list);)
modified:
storage/connect/ha_connect.cc
storage/connect/odbconn.cpp
storage/connect/odbconn.h
storage/connect/tabmysql.cpp
storage/connect/tabmysql.h
storage/connect/tabodbc.cpp
storage/connect/tabodbc.h
storage/connect/tabtbl.cpp
storage/connect/tabwmi.cpp
storage/connect/xtable.h
- Enhance retrieving column definitions in discovery:
From SRCDEF adding LIMIT 0 to the executed query
Testing if type, length, and precision are compatible
Making the distinction between CHAR and VARCHAR
modified:
storage/connect/ha_connect.cc
storage/connect/myconn.cpp
storage/connect/mysql-test/connect/r/mysql.result
storage/connect/mysql-test/connect/r/odbc_sqlite3.result
storage/connect/mysql-test/connect/r/odbc_sqlite3_grant.result
storage/connect/myutil.h
storage/connect/myutil.h
storage/connect/odbconn.cpp
storage/connect/value.h
Diffstat (limited to 'storage/connect/tabwmi.cpp')
-rw-r--r-- | storage/connect/tabwmi.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/storage/connect/tabwmi.cpp b/storage/connect/tabwmi.cpp index 1c626a06256..7926505e672 100644 --- a/storage/connect/tabwmi.cpp +++ b/storage/connect/tabwmi.cpp @@ -480,18 +480,19 @@ bool TDBWMI::Initialize(PGLOBAL g) /***********************************************************************/ void TDBWMI::DoubleSlash(PGLOBAL g) { - if (To_Filter && strchr(To_Filter, '\\')) { - char *buf = (char*)PlugSubAlloc(g, NULL, strlen(To_Filter) * 2); + if (To_Filter && strchr(To_Filter->Body, '\\')) { + char *body = To_Filter->Body; + char *buf = (char*)PlugSubAlloc(g, NULL, strlen(body) * 2); int i = 0, k = 0; do { - if (To_Filter[i] == '\\') + if (body[i] == '\\') buf[k++] = '\\'; - buf[k++] = To_Filter[i]; - } while (To_Filter[i++]); + buf[k++] = body[i]; + } while (body[i++]); - To_Filter = buf; + To_Filter->Body = buf; } // endif To_Filter } // end of DoubleSlash @@ -539,13 +540,13 @@ char *TDBWMI::MakeWQL(PGLOBAL g) // Below 14 is length of 'select ' + length of ' from ' + 1 len = (strlen(colist) + strlen(Wclass) + 14); - len += (To_Filter ? strlen(To_Filter) + 7 : 0); + len += (To_Filter ? strlen(To_Filter->Body) + 7 : 0); wql = (char*)PlugSubAlloc(g, NULL, len); strcat(strcat(strcpy(wql, "SELECT "), colist), " FROM "); strcat(wql, Wclass); if (To_Filter) - strcat(strcat(wql, " WHERE "), To_Filter); + strcat(strcat(wql, " WHERE "), To_Filter->Body); return wql; } // end of MakeWQL |