diff options
author | Olivier Bertrand <bertrandop@gmail.com> | 2013-08-14 16:07:32 +0200 |
---|---|---|
committer | Olivier Bertrand <bertrandop@gmail.com> | 2013-08-14 16:07:32 +0200 |
commit | 0993d4b4f5e5710022c5c0262b803617f8bf28c8 (patch) | |
tree | e64b2d30ef25b26ffda5f7ff6078825029ee3101 /storage/connect/odbconn.cpp | |
parent | f772ed74d02ceb76d063e4f6c14de4c18c4b946c (diff) | |
download | mariadb-git-0993d4b4f5e5710022c5c0262b803617f8bf28c8.tar.gz |
- Change the Blanks parameter from true to false in catalog getting
information function. This solve the problem of uninitialised zone
that was detected by valgrind.
modified:
storage/connect/myconn.cpp
storage/connect/odbconn.cpp
storage/connect/tabfmt.cpp
storage/connect/tabutil.cpp
storage/connect/tabwmi.cpp
Diffstat (limited to 'storage/connect/odbconn.cpp')
-rw-r--r-- | storage/connect/odbconn.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/storage/connect/odbconn.cpp b/storage/connect/odbconn.cpp index 4d16286ad76..4feaafa34a9 100644 --- a/storage/connect/odbconn.cpp +++ b/storage/connect/odbconn.cpp @@ -280,7 +280,7 @@ PQRYRES ODBCColumns(PGLOBAL g, char *dsn, char *table, /* Allocate the structures used to refer to the result set. */ /************************************************************************/ qrp = PlgAllocResult(g, ncol, maxres, IDS_COLUMNS, - buftyp, fldtyp, length, true, true); + buftyp, fldtyp, length, false, true); if (info) // Info table return qrp; @@ -422,7 +422,7 @@ PQRYRES ODBCDataSources(PGLOBAL g, bool info) /* Allocate the structures used to refer to the result set. */ /************************************************************************/ qrp = PlgAllocResult(g, ncol, maxres, IDS_DSRC, - buftyp, fldtyp, length, true, true); + buftyp, fldtyp, length, false, true); /************************************************************************/ /* Now get the results into blocks. */ @@ -467,7 +467,7 @@ PQRYRES ODBCDrivers(PGLOBAL g, bool info) /* Allocate the structures used to refer to the result set. */ /************************************************************************/ qrp = PlgAllocResult(g, ncol, maxres, IDS_DRIVER, - buftyp, fldtyp, length, true, true); + buftyp, fldtyp, length, false, true); /************************************************************************/ /* Now get the results into blocks. */ @@ -532,7 +532,7 @@ PQRYRES ODBCTables(PGLOBAL g, char *dsn, char *tabpat, bool info) /* Allocate the structures used to refer to the result set. */ /************************************************************************/ qrp = PlgAllocResult(g, ncol, maxres, IDS_TABLES, buftyp, - fldtyp, length, true, true); + fldtyp, length, false, true); if (info) return qrp; @@ -616,7 +616,7 @@ PQRYRES ODBCPrimaryKeys(PGLOBAL g, ODBConn *op, char *dsn, char *table) /* Allocate the structure used to refer to the result set. */ /************************************************************************/ qrp = PlgAllocResult(g, ncol, maxres, IDS_PKEY, - buftyp, NULL, length, true, true); + buftyp, NULL, length, false, true); if (trace) htrc("Getting pkey results ncol=%d\n", qrp->Nbcol); @@ -698,7 +698,7 @@ PQRYRES ODBCStatistics(PGLOBAL g, ODBConn *op, char *dsn, char *pat, /* Allocate the structure used to refer to the result set. */ /************************************************************************/ qrp = PlgAllocResult(g, ncol, maxres, IDS_STAT, - buftyp, NULL, length, true, true); + buftyp, NULL, length, false, true); if (trace) htrc("Getting stat results ncol=%d\n", qrp->Nbcol); |