1
0

tkt2450.test 983 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # 2007 June 24
  2. #
  3. # The author disclaims copyright to this source code. In place of
  4. # a legal notice, here is a blessing:
  5. #
  6. # May you do good and not evil.
  7. # May you find forgiveness for yourself and forgive others.
  8. # May you share freely, never taking more than you give.
  9. #
  10. #***********************************************************************
  11. #
  12. # This file is to test that ticket #2450 has been fixed.
  13. #
  14. # $Id: tkt2450.test,v 1.1 2007/06/24 06:32:18 danielk1977 Exp $
  15. #
  16. set testdir [file dirname $argv0]
  17. source $testdir/tester.tcl
  18. do_test tkt2450-1 {
  19. execsql {
  20. CREATE TABLE "t a" ("""cb""");
  21. INSERT INTO "t a" ("""cb""") VALUES (1);
  22. SELECT """cb""" FROM "t a";
  23. }
  24. } {1}
  25. do_test tkt2450-2 {
  26. execsql {
  27. SELECT * FROM "t a";
  28. }
  29. } {1}
  30. do_test tkt2450-3 {
  31. execsql {
  32. SELECT "t a".* FROM "t a";
  33. }
  34. } {1}
  35. do_test tkt2450-3 {
  36. execsql {
  37. CREATE TABLE t1(a);
  38. INSERT INTO t1 VALUES(2);
  39. SELECT * FROM "t a", t1;
  40. }
  41. } {1 2}
  42. finish_test