tkt3508.test 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # 2008 November 22
  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. # $Id: tkt3508.test,v 1.5 2009/05/28 01:00:56 drh Exp $
  14. set testdir [file dirname $argv0]
  15. source $testdir/tester.tcl
  16. do_test tkt3508-1.1 {
  17. catchsql {
  18. CREATE TABLE modificationsTmp (
  19. SUBSTRATE_HPRD_ID VARCHAR(80),
  20. SUBSTRATE_GENE_SYMBOL VARCHAR(80),
  21. SUBSTRATE_ISOFORM_ID VARCHAR(80),
  22. SUBSTRATE_REFSEQ_ID VARCHAR(80),
  23. SITE INTEGER,
  24. RESIDUE VARCHAR(80),
  25. ENZYME_NAME VARCHAR(80),
  26. ENZYME_HPRD_ID VARCHAR(80),
  27. MODIFICATION_TYPE VARCHAR(80),
  28. EXPERIMENT_TYPE VARCHAR(80),
  29. REFERENCE_ID VARCHAR(80)
  30. );
  31. select SUBSTRATE_HPRD_ID, count(substrate_refseq_id) as c
  32. from modificationsTmp where c > 1 group by SUBSTRATE_HPRD_ID;
  33. }
  34. } {1 {misuse of aggregate: count()}}
  35. finish_test