Commit 554746af authored by Olivier Bertrand's avatar Olivier Bertrand

- Fix (gcc error) passing cmd instead of cmd.Getstr() to htrc

modified:
  storage/connect/myconn.cpp

- Remove an unuseful test (gcc warning)
modified:
  storage/connect/myconn.cpp
parent 56e27713
......@@ -172,7 +172,7 @@ PQRYRES MyColumns(PGLOBAL g, THD *thd, const char *host, const char *db,
} // endif b
if (trace)
htrc("MyColumns: cmd='%s'\n", cmd);
htrc("MyColumns: cmd='%s'\n", cmd.GetStr());
if ((n = myc.GetResultSize(g, cmd.GetStr())) < 0) {
myc.Close();
......
......@@ -141,8 +141,7 @@ class DllExport STRING : public BLOCK {
inline void Trim(void) {(void)Resize(Length + 1);}
inline void Chop(void) {if (Length) Strp[--Length] = 0;}
inline void RepLast(char c) {if (Length) Strp[Length-1] = c;}
inline void Truncate(uint n) {if (n >= 0 && n < Length)
{Strp[n] = 0; Length = n;}}
inline void Truncate(uint n) {if (n < Length) {Strp[n] = 0; Length = n;}}
protected:
char *Realloc(uint len);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment