2014-04-16 17:58:17 +02:00
|
|
|
continue 2003 review and tests
|
2014-04-18 22:51:05 +02:00
|
|
|
|
2014-04-19 20:17:19 +02:00
|
|
|
1. start replacing the 2003 stuff with 2011
|
|
|
|
2. create an error message document for the website
|
|
|
|
- base of error messages but add some more variations
|
|
|
|
3. start thinking about tests for invalid syntax
|
|
|
|
|
|
|
|
|
2014-04-16 19:38:19 +02:00
|
|
|
touch up the expr hack as best as can
|
2014-04-18 22:51:05 +02:00
|
|
|
|
2014-04-18 09:47:39 +02:00
|
|
|
careful review of token parses wrt trailing delimiters/junk
|
2014-04-17 17:32:41 +02:00
|
|
|
|
2014-04-18 22:51:05 +02:00
|
|
|
undo mess in the code created by adding lots of new support:
|
|
|
|
much more documentation
|
|
|
|
refactor crufty bits
|
|
|
|
reorder the code
|
|
|
|
reconsider the names and structure of the constructors in the syntax
|
|
|
|
refactor the typename parser - it's a real mess
|
2014-04-18 19:50:24 +02:00
|
|
|
|
2014-04-18 22:51:05 +02:00
|
|
|
add documentation in Parser.lhs on the left factoring/error handling
|
|
|
|
approach
|
2014-04-17 17:32:41 +02:00
|
|
|
|
2014-04-18 22:51:05 +02:00
|
|
|
create error message demonstration page for the website
|
2014-04-16 21:37:18 +02:00
|
|
|
|
2014-04-18 19:50:24 +02:00
|
|
|
fixes:
|
|
|
|
|
|
|
|
keyword tree, add explicit result then can use for joins also
|
|
|
|
|
|
|
|
keyword tree support prefix mode so can start from already parsed
|
|
|
|
token
|
|
|
|
|
|
|
|
do the final big left factor: typenames, interval lits, iden +
|
|
|
|
suffixes
|
|
|
|
|
2014-04-18 22:51:05 +02:00
|
|
|
left factor/try removal summary (needs updating):
|
|
|
|
|
|
|
|
identifier starts:
|
|
|
|
interval literal
|
|
|
|
character set literal
|
|
|
|
typed literals, multikeywords
|
|
|
|
identifier
|
|
|
|
app, agg, window
|
|
|
|
keyword function
|
|
|
|
issues in the special op internals
|
|
|
|
not between + other ops: needs new expression parsing
|
|
|
|
not in also
|
|
|
|
in suffix also
|
|
|
|
lots of overlap with binary and postfix multi keyword operators
|
|
|
|
quantified comparison also
|
|
|
|
issues in the typename parsing
|
|
|
|
dot in identifiers and as operator
|
|
|
|
issues in the symbol parser
|
|
|
|
hardcode all the symbols in the symbol parser/split?
|
|
|
|
conflict with in suffix and in in position
|
|
|
|
|
|
|
|
rules for changing the multi keyword parsing:
|
|
|
|
if a keyword must be followed by another
|
|
|
|
e.g. left join, want to refactor to produce 'expected "left join"'
|
|
|
|
if the keyword is optionally followed by another, e.g. with
|
|
|
|
recursive, then don't do this.
|
|
|
|
|
|
|
|
|
2014-04-16 21:37:18 +02:00
|
|
|
rough SQL 2003 todo, including tests to write:
|
2014-04-18 09:47:39 +02:00
|
|
|
|
2014-04-19 20:17:19 +02:00
|
|
|
switch to SQL 2011
|
|
|
|
|
2014-04-18 22:51:05 +02:00
|
|
|
now:
|
2014-04-18 23:18:15 +02:00
|
|
|
review the commented out reserved keyword entries and work out how to
|
|
|
|
fix
|
2014-04-18 22:51:05 +02:00
|
|
|
go through all? the functions
|
|
|
|
go through almost all the predicates
|
|
|
|
window functions missing bits, window clauses
|
|
|
|
from: more tests, review missing
|
|
|
|
tablesample, unnest, etc.
|
2014-04-18 09:47:39 +02:00
|
|
|
rows review
|
2014-04-18 22:51:05 +02:00
|
|
|
match missing bit
|
|
|
|
between symmetric
|
|
|
|
case review
|
2014-04-18 19:50:24 +02:00
|
|
|
|
2014-04-18 22:51:05 +02:00
|
|
|
detail list from the grammar, LNR = maybe leave until after next
|
|
|
|
release, otherwise planned for next release
|
2014-04-18 13:50:54 +02:00
|
|
|
|
|
|
|
LNR support needed MODULE syntax in identifiers - already covered?
|
|
|
|
LNR decide how to represent special identifiers including the session
|
2014-04-16 21:37:18 +02:00
|
|
|
variables or whatever they are called like current_user
|
2014-04-18 13:50:54 +02:00
|
|
|
LNR grouping - needs special syntax?
|
|
|
|
LNR next value for
|
|
|
|
LNR subtypes, methods, new /routine, dereference
|
|
|
|
LNR double check associativity, precedence (value exprs, joins, set ops)
|
2014-04-16 21:37:18 +02:00
|
|
|
position expressions
|
|
|
|
length expressions
|
|
|
|
extract expression
|
|
|
|
cardinality expression?
|
|
|
|
check concatenations
|
|
|
|
substring expressions
|
|
|
|
regular expression substring function
|
|
|
|
convert
|
|
|
|
translate
|
|
|
|
trim
|
|
|
|
overlay
|
2014-04-18 13:50:54 +02:00
|
|
|
LNR specifictype
|
2014-04-16 21:37:18 +02:00
|
|
|
row value constructors, expressions review
|
|
|
|
review table value constructor exactly what is allowed
|
|
|
|
lots more tests for from clause variations
|
|
|
|
tablesamples
|
|
|
|
unnest
|
|
|
|
table function derived table
|
|
|
|
only spec
|
|
|
|
join variations, including union join
|
|
|
|
review group by
|
|
|
|
window clauses
|
2014-04-18 22:51:05 +02:00
|
|
|
LNR all fields reference with alias 'select * as (a,b,c) ... '
|
2014-04-16 21:37:18 +02:00
|
|
|
search or cycle clause
|
|
|
|
between symmetric/asymmetric
|
|
|
|
in predicate review
|
|
|
|
escape for like
|
|
|
|
escape for [not] similar to
|
2014-04-18 13:50:54 +02:00
|
|
|
LNR regular expression syntax?
|
2014-04-16 21:37:18 +02:00
|
|
|
normalized predicate
|
|
|
|
overlaps predicate
|
|
|
|
distinct from predicate
|
|
|
|
member predicate
|
|
|
|
submultiset predicate
|
|
|
|
set predicate
|
2014-04-18 13:50:54 +02:00
|
|
|
LNR type predicate
|
2014-04-16 21:37:18 +02:00
|
|
|
additional stuff review:
|
2014-04-18 22:51:05 +02:00
|
|
|
complete the list of keywords/reserved keywords and check everything
|
|
|
|
still works ok. The parser will reject all unquoted identifiers
|
|
|
|
which are the same as reserved or unreserved keywords.
|
2014-04-18 13:50:54 +02:00
|
|
|
LNR select into
|
|
|
|
LNR other language format identifiers for host params?
|
|
|
|
|
2014-04-18 22:51:05 +02:00
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
after next release
|
2014-04-16 21:37:18 +02:00
|
|
|
|
|
|
|
review areas where this parser is too permissive, e.g. value
|
|
|
|
expressions allowed where column reference names only should be
|
|
|
|
allowed, such as group by, order by (perhaps there can be a flag or
|
|
|
|
warnings or something), unqualified asterisk in select list
|
|
|
|
|
2014-04-18 22:51:05 +02:00
|
|
|
fix the expression parser completely: the realistic way is to adjust
|
|
|
|
for precedence and associativity after parsing since the concrete
|
|
|
|
syntax is so messy. should also use this expression parser for
|
|
|
|
parsing joins and for set operations, maybe other areas.
|
2014-04-16 21:37:18 +02:00
|
|
|
|
2014-04-18 22:51:05 +02:00
|
|
|
table expression in syntax:
|
|
|
|
QueryExpr = Select SelectList (Maybe TableExpr)
|
|
|
|
and the TableExpr contains all the other bits?
|
2014-04-16 21:37:18 +02:00
|
|
|
|
2014-04-18 22:51:05 +02:00
|
|
|
change the booleans in the ast to better types for less ambiguity?
|
|
|
|
|
|
|
|
decide how to handle character set literals and identifiers: don't
|
|
|
|
have any intention of actually supporting switching character sets
|
|
|
|
in the middle of parsing so maybe this would be better disabled?
|
|
|
|
|
|
|
|
review places in the parse which should allow only a fixed set of
|
|
|
|
identifiers (e.g. in interval literals), keep in mind other
|
|
|
|
dialects and extensibility
|
|
|
|
|
|
|
|
decide whether to represent numeric literals better, instead of a
|
|
|
|
single string - break up into parts, or parse to a Decimal or
|
|
|
|
something
|
|
|
|
|
|
|
|
|
|
|
|
= future big feature summary
|
2014-04-16 21:37:18 +02:00
|
|
|
|
2014-04-16 17:58:17 +02:00
|
|
|
all ansi sql queries
|
2014-04-18 09:47:39 +02:00
|
|
|
completely working expression tree parsing
|
2014-04-16 17:58:17 +02:00
|
|
|
error messages, left factor
|
|
|
|
dml, ddl, procedural sql
|
|
|
|
position annotation
|
|
|
|
type checker/ etc.
|
|
|
|
lexer
|
|
|
|
dialects
|
|
|
|
quasi quotes
|
|
|
|
typesafe sql dbms wrapper support for haskell
|
|
|
|
extensibility
|
|
|
|
performance analysis
|
2014-04-15 12:47:34 +02:00
|
|
|
|
2014-04-18 22:51:05 +02:00
|
|
|
try out uu-parsing or polyparse, especially wrt error message
|
|
|
|
improvements
|
2014-04-15 12:47:34 +02:00
|
|
|
|
2014-04-18 09:47:39 +02:00
|
|
|
= stuff
|
2013-12-17 12:58:44 +01:00
|
|
|
|
2013-12-19 11:15:05 +01:00
|
|
|
try and use the proper css theme
|
2013-12-19 16:50:25 +01:00
|
|
|
create a header like in the haddock with simple-sql-parser +
|
|
|
|
contents link
|
|
|
|
change the toc gen so that it works the same as in haddock (same
|
|
|
|
div, no links on the actual titles
|
|
|
|
fix the page margins, and the table stuff: patches to the css?
|
2013-12-19 11:15:05 +01:00
|
|
|
|
2013-12-19 10:46:51 +01:00
|
|
|
release checklist:
|
|
|
|
hlint
|
|
|
|
haddock review
|
|
|
|
spell check
|
|
|
|
update changelog
|
|
|
|
update website text
|
2014-01-22 21:07:58 +01:00
|
|
|
regenerate the examples on the index.txt
|
2013-12-19 10:46:51 +01:00
|
|
|
|
|
|
|
= Later general tasks:
|
|
|
|
|
|
|
|
docs
|
2013-12-17 21:15:42 +01:00
|
|
|
|
|
|
|
add preamble to the rendered test page
|
|
|
|
|
2013-12-18 10:37:35 +01:00
|
|
|
add links from the supported sql page to the rendered test page for
|
2013-12-18 15:27:06 +01:00
|
|
|
each section -> have to section up the tests some more
|
2013-12-18 10:37:35 +01:00
|
|
|
|
2013-12-19 10:46:51 +01:00
|
|
|
testing
|
2013-12-18 10:37:35 +01:00
|
|
|
|
2013-12-17 10:40:31 +01:00
|
|
|
review tests to copy from hssqlppp
|
|
|
|
|
2014-01-22 21:07:58 +01:00
|
|
|
add lots more tests using SQL from the xb2 manual
|
|
|
|
|
2013-12-18 10:37:35 +01:00
|
|
|
much more table reference tests, for joins and aliases etc.?
|
|
|
|
|
|
|
|
review internal sql collection for more syntax/tests
|
|
|
|
|
2013-12-19 10:46:51 +01:00
|
|
|
other
|
2013-12-17 10:40:31 +01:00
|
|
|
|
2013-12-19 10:46:51 +01:00
|
|
|
----
|
2013-12-17 10:40:31 +01:00
|
|
|
|
2013-12-18 10:37:35 +01:00
|
|
|
demo program: convert tpch to sql server syntax exe processor
|
2013-12-17 10:40:31 +01:00
|
|
|
|
|
|
|
run through other manuals for example queries and features: sql in a
|
|
|
|
nutshell, sql guide, sql reference guide, sql standard, sql server
|
|
|
|
manual, oracle manual, teradata manual + re-through postgresql
|
|
|
|
manual and make notes in each case of all syntax and which isn't
|
|
|
|
currently supported also.
|
|
|
|
|
2013-12-14 19:20:41 +01:00
|
|
|
check the order of exports, imports and functions/cases in the files
|
|
|
|
fix up the import namespaces/explicit names nicely
|
|
|
|
|
2013-12-17 19:27:11 +01:00
|
|
|
ast checker: checks the ast represents valid syntax, the parser
|
|
|
|
doesn't check as much as it could, and this can also be used to
|
|
|
|
check generated trees. Maybe this doesn't belong in this package
|
|
|
|
though?
|
|
|
|
|
2014-04-16 21:37:18 +02:00
|
|
|
= other sql support
|
2013-12-13 13:08:33 +01:00
|
|
|
|
2014-04-18 09:47:39 +02:00
|
|
|
top
|
|
|
|
string literals
|
2013-12-13 17:50:41 +01:00
|
|
|
full number literals -> other bases?
|
2013-12-13 13:08:33 +01:00
|
|
|
apply, pivot
|
2013-12-19 09:27:44 +01:00
|
|
|
|
2013-12-13 17:50:41 +01:00
|
|
|
other dialect targets:
|
|
|
|
postgres
|
|
|
|
oracle
|
|
|
|
teradata
|
|
|
|
ms sql server
|
|
|
|
mysql?
|
|
|
|
db2?
|
2014-04-16 17:58:17 +02:00
|
|
|
what other major dialects are there?
|
|
|
|
sqlite
|
|
|
|
sap dbmss (can't work out what are separate products or what are the
|
|
|
|
dialects)
|
2013-12-13 17:50:41 +01:00
|
|
|
|