home *** CD-ROM | disk | FTP | other *** search
/ Total Network Tools 2002 / NextStepPublishing-TotalNetworkTools2002-Win95.iso / Archive / Misc Servers / Zope.exe / SQLGTEST.PY < prev    next >
Encoding:
Text File  |  1999-07-28  |  534 b   |  17 lines

  1. "test parses for sql grammar"
  2.  
  3. test = [
  4. "select a from x where b=c",
  5. "select distinct x.a from x where x.b=c",
  6. "select all a from x where b=c",
  7. "select a from x, y where b=c or x.d=45",
  8. "select a as k from x d, y as m where b=c",
  9. "select 1 as n, a from x where b=c",
  10. "select * from x",
  11. "select a from x where b=c",
  12. "select a from x where not b=c or d=1 and e=5",
  13. "select a from x where a=1 and (x.b=3 or not b=c)",
  14. "select -1 from x",
  15. "select -1e6j from x",
  16. "insert into table1 (a,b,c) values (-1e6+3j, -34e10, 56j)"
  17. ]