Skip to content

Commit

Permalink
grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
langpavel committed Aug 8, 2012
1 parent 1c7e4a1 commit 1c31689
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/sqljs
@@ -1,3 +1,3 @@
#!/usr/bin/env node #!/usr/bin/env node


require('../lib/sqljs-cli') require('../lib/sqljs-cli');
2 changes: 1 addition & 1 deletion grammar/13-01-14-create-table.pegjs
Expand Up @@ -176,7 +176,7 @@ COLUMN_TYPE_PROPERTIES "Column type properties"
if(length) props.length = length; if(length) props.length = length;
return props; return props;
} }
/ _ ("NUM"i ("ERIC"i/"BER"i)? / "DECIMAL"i) length:NUMERIC_TYPE_LENGTH props:COLUMN_TYPE_PROPERTIES { / _ ("NUM"i ("ERIC"i/"BER"i)? / "DEC"i "IMAL"i?) length:NUMERIC_TYPE_LENGTH props:COLUMN_TYPE_PROPERTIES {
if(props.type) if(props.type)
throw new SyntaxError("Ambiguous type"); throw new SyntaxError("Ambiguous type");
props.type = 'DECIMAL'; props.type = 'DECIMAL';
Expand Down
2 changes: 1 addition & 1 deletion grammar/80-literal-datetime.pegjs
Expand Up @@ -4,7 +4,7 @@
CURRENT_TIMESTAMP CURRENT_TIMESTAMP
= ( "CURRENT_TIMESTAMP"i = ( "CURRENT_TIMESTAMP"i
/ "CURRENT"i _ "TIMESTAMP"i / "CURRENT"i _ "TIMESTAMP"i
/ "NOW"i (_ "()")? ) / "NOW"i (_ "()" )? )
{ {
return options.createValueCurrentTimestamp(); return options.createValueCurrentTimestamp();
} }
Expand Down

0 comments on commit 1c31689

Please sign in to comment.