tkt3522.test 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # 2008 December 4
  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. # This file implements regression tests for SQLite library.
  12. #
  13. # This file is a verification that the bugs identified in ticket
  14. # #3522 have been fixed.
  15. #
  16. # $Id: tkt3522.test,v 1.1 2008/12/05 00:00:07 drh Exp $
  17. set testdir [file dirname $argv0]
  18. source $testdir/tester.tcl
  19. do_test tkt3522-1.1 {
  20. db eval {
  21. CREATE TABLE tab4(
  22. col0 INTEGER,
  23. col1 INTEGER,
  24. col2 INTEGER,
  25. col3 INTEGER,
  26. col4 INTEGER
  27. );
  28. SELECT cor1.*
  29. FROM tab4 AS cor0
  30. JOIN tab4 AS cor1 USING ( col4, col3, col2, col1, col0 );
  31. }
  32. } {}
  33. do_test tkt3522-1.2 {
  34. db eval {
  35. CREATE TABLE tab1(col0 INTEGER);
  36. CREATE TABLE tab2(col0 INTEGER);
  37. SELECT cor0.* FROM tab1 NATURAL JOIN tab2 AS cor0;
  38. }
  39. } {}
  40. finish_test