tkt-d635236375.test 996 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # 2011 August 3
  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. The
  12. # focus of this file is testing that bug [d63523637517386191d634e]
  13. # has been fixed.
  14. #
  15. set testdir [file dirname $argv0]
  16. source $testdir/tester.tcl
  17. set ::testprefix tkt-d635236375
  18. do_test 1.0 {
  19. execsql {
  20. CREATE TABLE t1(id1 INTEGER PRIMARY KEY);
  21. INSERT INTO t1 VALUES(9999);
  22. CREATE TABLE t2(id2 INTEGER PRIMARY KEY);
  23. INSERT INTO t2 VALUES(12345);
  24. INSERT INTO t2 VALUES(54321);
  25. SELECT DISTINCT id1 AS x, id1 AS y FROM t1, t2;
  26. }
  27. } {9999 9999}
  28. do_test 1.1 {
  29. execsql {
  30. SELECT count(*) FROM t1, t2 GROUP BY id1, id1;
  31. }
  32. } {2}
  33. finish_test