diff options
author | unknown <tomas@poseidon.ndb.mysql.com> | 2004-10-25 10:23:45 +0000 |
---|---|---|
committer | unknown <tomas@poseidon.ndb.mysql.com> | 2004-10-25 10:23:45 +0000 |
commit | cb365f99b3b9385e805095306b9fa5d7e6f07767 (patch) | |
tree | 20379370c7cd2f93f2d41547d9842fa6624c1394 /ndb/tools | |
parent | 3dee030ff92d504f8ce1ce903865e735e5202f1d (diff) | |
download | mariadb-git-cb365f99b3b9385e805095306b9fa5d7e6f07767.tar.gz |
removed compiler warning
shortened help text
ndb/tools/select_all.cpp:
removed compiler warning
Diffstat (limited to 'ndb/tools')
-rw-r--r-- | ndb/tools/select_all.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ndb/tools/select_all.cpp b/ndb/tools/select_all.cpp index 8fb8437ba5f..9f8108d9f32 100644 --- a/ndb/tools/select_all.cpp +++ b/ndb/tools/select_all.cpp @@ -116,6 +116,11 @@ int main(int argc, const char** argv){ ndbout << " Table " << _tabname << " does not exist!" << endl; return NDBT_ProgramExit(NDBT_WRONGARGS); } + + if(_order && pIdx == NULL){ + ndbout << " Order flag given without an index" << endl; + return NDBT_ProgramExit(NDBT_WRONGARGS); + } if (scanReadRecords(&MyNdb, pTab, @@ -146,7 +151,7 @@ int scanReadRecords(Ndb* pNdb, int check; NdbConnection *pTrans; NdbScanOperation *pOp; - NdbIndexScanOperation * pIOp; + NdbIndexScanOperation * pIOp= 0; NDBT_ResultRow * row = new NDBT_ResultRow(*pTab, delimiter); |