aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2002-04-06 13:57:42 +0000
committerdrh <drh@noemail.net>2002-04-06 13:57:42 +0000
commitbf3a4fa4cb2863e9c544160451a60e04488f78d5 (patch)
tree5d1e4066ed80c56ca3f8cf93b76c3f0559dd8b9d /src
parent41e941dda62d0f24a97591e3c609ad3a932a2837 (diff)
downloadsqlite-bf3a4fa4cb2863e9c544160451a60e04488f78d5.tar.gz
sqlite-bf3a4fa4cb2863e9c544160451a60e04488f78d5.zip
Make the FROM clause on a SELECT optional. If omitted, the result of
the SELECT is a single row consisting of the values in the expression list. (CVS 520) FossilOrigin-Name: 28ce42f7872e2660faa22e66b508db9b1f046af0
Diffstat (limited to 'src')
-rw-r--r--src/parse.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/parse.y b/src/parse.y
index b43a5f4f6..483854318 100644
--- a/src/parse.y
+++ b/src/parse.y
@@ -14,7 +14,7 @@
** the parser. Lemon will also generate a header file containing
** numeric codes for all of the tokens.
**
-** @(#) $Id: parse.y,v 1.60 2002/04/04 02:10:57 drh Exp $
+** @(#) $Id: parse.y,v 1.61 2002/04/06 13:57:43 drh Exp $
*/
%token_prefix TK_
%token_type {Token}
@@ -271,6 +271,7 @@ as ::= AS.
%type from {IdList*}
%destructor from {sqliteIdListDelete($$);}
+from(A) ::= . {A = sqliteMalloc(sizeof(*A));}
from(A) ::= FROM seltablist(X). {A = X;}
stl_prefix(A) ::= seltablist(X) COMMA. {A = X;}
stl_prefix(A) ::= . {A = 0;}