odbc.test
Upload User: romrleung
Upload Date: 2022-05-23
Package Size: 18897k
Code Size: 1k
Category:

MySQL

Development Platform:

Visual C++

  1. # Initialise
  2. --disable_warnings
  3. drop table if exists t1;
  4. --enable_warnings
  5. #
  6. # Test some ODBC compatibility
  7. #
  8. select {fn length("hello")}, { date "1997-10-20" };
  9. #
  10. # Test retreiving row with last insert_id value.
  11. #
  12. create table t1 (a int not null auto_increment,b int not null,primary key (a,b));
  13. insert into t1 SET A=NULL,B=1;
  14. insert into t1 SET a=null,b=2;
  15. select * from t1 where a is null and b=2;
  16. select * from t1 where a is null;
  17. explain select * from t1 where b is null;
  18. drop table t1;
  19. # End of 4.1 tests