2010-09-09 22:18:43 +00:00
### Test reading sql from url command line
Test reading SQL from command line
Yes it works
### Test reading sql from url command line %-quoting
Test %-quoting SQL from command line
Yes it works
### Test .sql/aliases with url on commandline
Test if .sql/aliases with %-quoting works
Yes it works
### Test cyclic alias .sql/aliases
:cyclic3 is a cyclic alias
2010-09-10 00:26:01 +00:00
### Test alias with statement .sql/aliases
Test statement in alias
It works
2010-09-14 16:37:26 +00:00
Test statement in alias
It works
Test statement in alias
It works
### Test alias followed by SQL as arg
Test statement in alias
It works
2010-09-14 21:25:53 +00:00
'Arg on cmdline'
2010-09-14 16:37:26 +00:00
Arg on cmdline
### Test alias with query followed by SQL as arg
Test statement in alias
It works
Query added to alias
2010-09-14 21:25:53 +00:00
'Arg on cmdline'
2010-09-14 16:37:26 +00:00
Arg on cmdline
### Test alias with statement .sql/aliases
Test statement in alias
It works
Query added to alias
2010-09-14 21:25:53 +00:00
'Query from stdin'
2010-09-14 16:37:26 +00:00
Query from stdin
Test statement in alias
It works
Query added to alias
Query added to alias
Query from stdin
Query from stdin
2010-09-09 22:18:43 +00:00
### Test empty dburl
Error:
is not a valid DBURL
sql [-hnr] [--table-size] [--db-size] [-p pass-through] [-s string] dburl [command]
### Test dburl :
Error:
: is not defined in /home/tange/.sql/aliases /home/tange/.dburl.aliases /etc/sql/aliases /usr/local/bin/dburl.aliases /usr/local/bin/dburl.aliases.dist
sql [-hnr] [--table-size] [--db-size] [-p pass-through] [-s string] dburl [command]
2010-09-14 21:25:53 +00:00
### Test oracle with multiple arguments on the command line
2012-10-22 06:32:39 +00:00
'ARG
----
2010-09-14 21:25:53 +00:00
arg2
2012-10-22 06:32:39 +00:00
'ARG
----
2010-09-14 21:25:53 +00:00
arg3
2010-09-22 21:54:42 +00:00
### Test oracle with \n arguments on the command line
1
----------
1
2
----------
2
3
----------
3