This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

grammar

  • Loading branch information...
langpavel committed Aug 8, 2012
1 parent 1c7e4a1 commit 1c3168979d8b39cdd7d9aecba107812a8a690fb2
Showing with 3 additions and 3 deletions.
  1. +1 −1 bin/sqljs
  2. +1 −1 grammar/13-01-14-create-table.pegjs
  3. +1 −1 grammar/80-literal-datetime.pegjs
View
@@ -1,3 +1,3 @@
#!/usr/bin/env node
-require('../lib/sqljs-cli')
+require('../lib/sqljs-cli');
@@ -176,7 +176,7 @@ COLUMN_TYPE_PROPERTIES "Column type properties"
if(length) props.length = length;
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)
throw new SyntaxError("Ambiguous type");
props.type = 'DECIMAL';
@@ -4,7 +4,7 @@
CURRENT_TIMESTAMP
= ( "CURRENT_TIMESTAMP"i
/ "CURRENT"i _ "TIMESTAMP"i
- / "NOW"i (_ "()")? )
+ / "NOW"i (_ "()" )? )
{
return options.createValueCurrentTimestamp();
}

0 comments on commit 1c31689

Please sign in to comment.