mariadb/ndb/test/ndbapi
unknown 09944efd71 BUG#10365 Cluster handler uses non-standard error codes
- Added better error messages when trying to open a table that can't be discovered or unpacked. The most likely cause of this is that it does not have any frm data, probably since it has been created from NdbApi or is a NDB system table.
 - Separated functionality that was in ha_create_table_from_engine into two functions. One that checks if the table exists and another one that tries to create the table from the engine.


mysql-test/r/ndb_autodiscover.result:
  Add tests for reading from a table that can't be discovered(SYSTAB_0)
  Discovery is not performed during create table anymore.
mysql-test/t/ndb_autodiscover.test:
  Add tests for reading from a table that can't be discovered(SYSTAB_0)
  Discovery is not performed during create table anymore.
ndb/test/ndbapi/create_tab.cpp:
  Set connectstring before creating Ndb object.
sql/ha_ndbcluster.cc:
  Rename and use the function ndbcluster_table_exists_in_engine.
  Correct return valu from ndbcluster_discover
  Remove old code "ndb_discover_tables"
sql/ha_ndbcluster.h:
  Rename function ndbcluster_table_exists to ndb ndbcluster_table_exists_in_engine
sql/handler.cc:
  Update comment of ha_create_table_from_engine
  Remove parameter create_if_found from ha_create_table_from_engine, the function ha_table_exists_in_engine is now used toi check if table is found in engine.
  Cleanup return codes from ha_create_table_from_engine.
  Change name of ha_table_exists to ha_table_exists_in_engine, update comment and returne codes.
sql/handler.h:
  Remove paramter create_if_cound from  ha_create_table_from_engine
  Rename ha_table_exists to ha_table_exists_in_engine
sql/sql_base.cc:
  Use the function ha_table_exists_in_engine to detect if table exists in enegine. 
  If it exists, call function ha_create_table_from_engine to try and create it.
  If create of table fails, set correct error message.
sql/sql_table.cc:
  Add comments, remove parameter create_if_found to ha_create_table_from_engine.
  When dropping a table, try to discover it from engine. If discover fails, use same error message as if the table didn't exists. 
  Maybe another message should be displayed here, ex: "Table could not be dropped, unpack failed"
  
  When creating a new table, use ha_table_exists_in_engine to check if a table with the given name already exists.
2005-06-08 13:31:59 +02:00
..
bank wl1744 - ndb on windows 2004-11-10 00:03:01 +01:00
bench ndb - fix compiler warning (error using gcc-3.4.3) 2005-02-11 08:09:47 +01:00
old_dirs Makefile.am: 2004-11-08 10:35:23 +00:00
acid.cpp ndb_init() to all ndb programs 2004-09-15 11:49:18 +02:00
acid2.cpp ndb_init() to all ndb programs 2004-09-15 11:49:18 +02:00
adoInsertRecs.cpp neww ndb automake 2004-05-26 15:36:55 +00:00
asyncGenerator.cpp changed to call internal snprintf/vsnprintf 2004-10-21 19:02:01 +00:00
benchronja.cpp cleanup and streamlining of thread create/exit in ndb 2005-02-01 19:01:37 +01:00
bulk_copy.cpp changed to call internal snprintf/vsnprintf 2004-10-21 19:02:01 +00:00
cdrserver.cpp changed to call internal snprintf/vsnprintf 2004-10-21 19:02:01 +00:00
celloDb.cpp ndb_init() to all ndb programs 2004-09-15 11:49:18 +02:00
create_all_tabs.cpp ndb_init() to all ndb programs 2004-09-15 11:49:18 +02:00
create_tab.cpp BUG#10365 Cluster handler uses non-standard error codes 2005-06-08 13:31:59 +02:00
drop_all_tabs.cpp ndb_init() to all ndb programs 2004-09-15 11:49:18 +02:00
flex_bench_mysql.cpp cleanup and streamlining of thread create/exit in ndb 2005-02-01 19:01:37 +01:00
flexAsynch.cpp cleanup and streamlining of thread create/exit in ndb 2005-02-01 19:01:37 +01:00
flexBench.cpp cleanup and streamlining of thread create/exit in ndb 2005-02-01 19:01:37 +01:00
flexHammer.cpp cleanup and streamlining of thread create/exit in ndb 2005-02-01 19:01:37 +01:00
flexScan.cpp cleanup and streamlining of thread create/exit in ndb 2005-02-01 19:01:37 +01:00
flexTimedAsynch.cpp cleanup and streamlining of thread create/exit in ndb 2005-02-01 19:01:37 +01:00
flexTT.cpp cleanup and streamlining of thread create/exit in ndb 2005-02-01 19:01:37 +01:00
index.cpp ndb: set column type sets column defaults 2004-09-15 14:52:39 +02:00
index2.cpp ndb: set column type sets column defaults 2004-09-15 14:52:39 +02:00
initronja.cpp ndb_init() to all ndb programs 2004-09-15 11:49:18 +02:00
InsertRecs.cpp neww ndb automake 2004-05-26 15:36:55 +00:00
interpreterInTup.cpp changed to call internal snprintf/vsnprintf 2004-10-21 19:02:01 +00:00
mainAsyncGenerator.cpp cleanup and streamlining of thread create/exit in ndb 2005-02-01 19:01:37 +01:00
Makefile.am CSC5149 - ndb test programs 2005-04-19 11:17:32 +02:00
msa.cpp ndb_init() to all ndb programs 2004-09-15 11:49:18 +02:00
ndb_async1.cpp neww ndb automake 2004-05-26 15:36:55 +00:00
ndb_async2.cpp neww ndb automake 2004-05-26 15:36:55 +00:00
ndb_user_populate.cpp neww ndb automake 2004-05-26 15:36:55 +00:00
ndb_user_transaction.cpp neww ndb automake 2004-05-26 15:36:55 +00:00
ndb_user_transaction2.cpp neww ndb automake 2004-05-26 15:36:55 +00:00
ndb_user_transaction3.cpp neww ndb automake 2004-05-26 15:36:55 +00:00
ndb_user_transaction4.cpp neww ndb automake 2004-05-26 15:36:55 +00:00
ndb_user_transaction5.cpp neww ndb automake 2004-05-26 15:36:55 +00:00
ndb_user_transaction6.cpp neww ndb automake 2004-05-26 15:36:55 +00:00
restarter.cpp ndb_init() to all ndb programs 2004-09-15 11:49:18 +02:00
restarter2.cpp ndb_init() to all ndb programs 2004-09-15 11:49:18 +02:00
restarts.cpp ndb_init() to all ndb programs 2004-09-15 11:49:18 +02:00
ScanFilter.hpp neww ndb automake 2004-05-26 15:36:55 +00:00
ScanFunctions.hpp compile fix for ndbapi test program on irix (variable scope) 2004-11-08 13:59:04 +01:00
ScanInterpretTest.hpp Merge 2004-05-27 11:36:10 +02:00
size.cpp ndb_init() to all ndb programs 2004-09-15 11:49:18 +02:00
slow_select.cpp ndb_init() to all ndb programs 2004-09-15 11:49:18 +02:00
test_event.cpp ndb_init() to all ndb programs 2004-09-15 11:49:18 +02:00
testBackup.cpp bug#9924 - ndb backup abort handling 2005-04-22 09:07:25 +02:00
testBasic.cpp testBasic -n NoCommit626 2004-10-13 11:28:24 +02:00
testBasicAsynch.cpp ndb_init() to all ndb programs 2004-09-15 11:49:18 +02:00
testBlobs.cpp ndb: use Ndb_cluster_connection in test* 2004-12-22 15:08:22 +01:00
testDataBuffers.cpp compile fix for ndbapi test program on irix (variable scope) 2004-11-08 13:59:04 +01:00
testDeadlock.cpp compile fix for ndbapi test program on irix (variable scope) 2004-11-08 13:59:04 +01:00
testDict.cpp Removed getTableForAlteration 2004-12-07 10:27:22 +01:00
testGrep.cpp ndb_init() to all ndb programs 2004-09-15 11:49:18 +02:00
testGrepVerify.cpp ndb_init() to all ndb programs 2004-09-15 11:49:18 +02:00
testIndex.cpp bug#9892 2005-04-18 12:41:12 +02:00
testInterpreter.cpp ndb_init() to all ndb programs 2004-09-15 11:49:18 +02:00
testLcp.cpp compile fix for ndbapi test program on irix (variable scope) 2004-11-08 13:59:04 +01:00
testMgm.cpp ndb_init() to all ndb programs 2004-09-15 11:49:18 +02:00
testNdbApi.cpp added config parameter Group on connection 2004-12-20 12:36:14 +01:00
testNodeRestart.cpp ndb - testNodeRestart -n LateCommit 2005-05-05 11:09:00 +02:00
testOIBasic.cpp ndb - bug#10029 fix 2005-04-23 17:33:12 +02:00
testOperations.cpp bug#9749 - ndb lock upgrade 2005-04-25 11:59:00 +02:00
testOrderedIndex.cpp ndb_init() to all ndb programs 2004-09-15 11:49:18 +02:00
testReadPerf.cpp Merge mysql.com:/home/jonas/src/mysql-4.1 2004-11-22 07:52:42 +01:00
testRestartGci.cpp compile fix for ndbapi test program on irix (variable scope) 2004-11-08 13:59:04 +01:00
testScan.cpp bug8262 - ndb 2005-02-06 10:00:29 +01:00
testScanInterpreter.cpp changed to call internal snprintf/vsnprintf 2004-10-21 19:02:01 +00:00
testScanPerf.cpp ndb - bugfix testScanPerf 2004-11-26 10:00:33 +01:00
testSystemRestart.cpp compile fix for ndbapi test program on irix (variable scope) 2004-11-08 13:59:04 +01:00
testTimeout.cpp Fix changed interface to HugoOperations 2004-10-13 11:43:54 +02:00
testTransactions.cpp Test prg update 2004-10-08 16:42:51 +02:00
TraceNdbApi.cpp neww ndb automake 2004-05-26 15:36:55 +00:00
userInterface.cpp more snprintf... 2004-10-21 19:23:18 +00:00
VerifyNdbApi.cpp neww ndb automake 2004-05-26 15:36:55 +00:00