@@ -996,6 +996,13 @@ Table
996996 { $$ = new yy.Table ({tableid: $1 }); }
997997 ;
998998
999+ TargetTable
1000+ : Table
1001+ { $$ = $1 ; }
1002+ | ParamValue
1003+ { $$ = $1 ; }
1004+ ;
1005+
9991006JoinTablesList
10001007 : JoinTablesList JoinTable
10011008 { $$ = $1 ; $1 .push ($2 ); }
@@ -1836,9 +1843,9 @@ AllSome
18361843/* UPDATE */
18371844
18381845Update
1839- : UPDATE Table SET SetColumnsList WHERE Expression OutputClause
1846+ : UPDATE TargetTable SET SetColumnsList WHERE Expression OutputClause
18401847 { $$ = new yy.Update ({table: $2 , columns: $4 , where: $6 }); yy .extend ($$ ,$7 ); }
1841- | UPDATE Table SET SetColumnsList OutputClause
1848+ | UPDATE TargetTable SET SetColumnsList OutputClause
18421849 { $$ = new yy.Update ({table: $2 , columns: $4 }); yy .extend ($$ ,$5 ); }
18431850 ;
18441851
@@ -1860,52 +1867,52 @@ SetColumn
18601867/* DELETE */
18611868
18621869Delete
1863- : DELETE FROM Table WHERE Expression OutputClause
1870+ : DELETE FROM TargetTable WHERE Expression OutputClause
18641871 { $$ = new yy.Delete ({table: $3 , where: $5 }); yy .extend ($$ ,$6 ); }
1865- | DELETE FROM Table OutputClause
1872+ | DELETE FROM TargetTable OutputClause
18661873 { $$ = new yy.Delete ({table: $3 }); yy .extend ($$ ,$4 ); }
18671874 ;
18681875
18691876/* INSERT */
18701877
18711878Insert
1872- : INSERT Into Table Values ValuesListsList OutputClause
1879+ : INSERT Into TargetTable Values ValuesListsList OutputClause
18731880 { $$ = new yy.Insert ({into: $3 , values: $5 }); yy .extend ($$ ,$6 ); }
1874- | INSERT Into Table ValuesListsList OutputClause
1881+ | INSERT Into TargetTable ValuesListsList OutputClause
18751882 { $$ = new yy.Insert ({into: $3 , values: $4 }); yy .extend ($$ ,$5 ); }
1876- | INSERT IGNORE Into Table Values ValuesListsList OutputClause
1883+ | INSERT IGNORE Into TargetTable Values ValuesListsList OutputClause
18771884 { $$ = new yy.Insert ({into: $4 , values: $6 , ignore: true }); yy .extend ($$ ,$7 ); }
1878- | INSERT IGNORE Into Table ValuesListsList OutputClause
1885+ | INSERT IGNORE Into TargetTable ValuesListsList OutputClause
18791886 { $$ = new yy.Insert ({into: $4 , values: $5 , ignore: true }); yy .extend ($$ ,$6 ); }
1880- | INSERT IGNORE Into Table LPAR ColumnsList RPAR Values ValuesListsList OutputClause
1887+ | INSERT IGNORE Into TargetTable LPAR ColumnsList RPAR Values ValuesListsList OutputClause
18811888 { $$ = new yy.Insert ({into: $4 , columns: $6 , values: $9 , ignore: true }); yy .extend ($$ ,$10 ); }
1882- | INSERT IGNORE Into Table LPAR ColumnsList RPAR ValuesListsList OutputClause
1889+ | INSERT IGNORE Into TargetTable LPAR ColumnsList RPAR ValuesListsList OutputClause
18831890 { $$ = new yy.Insert ({into: $4 , columns: $6 , values: $8 , ignore: true }); yy .extend ($$ ,$9 ); }
1884- | INSERT IGNORE Into Table Select OutputClause
1891+ | INSERT IGNORE Into TargetTable Select OutputClause
18851892 { $$ = new yy.Insert ({into: $4 , select: $5 , ignore: true }); yy .extend ($$ ,$6 ); }
1886- | INSERT IGNORE Into Table LPAR ColumnsList RPAR Select OutputClause
1893+ | INSERT IGNORE Into TargetTable LPAR ColumnsList RPAR Select OutputClause
18871894 { $$ = new yy.Insert ({into: $4 , columns: $6 , select: $8 , ignore: true }); yy .extend ($$ ,$9 ); }
1888- | INSERT OR REPLACE Into Table Values ValuesListsList OutputClause
1895+ | INSERT OR REPLACE Into TargetTable Values ValuesListsList OutputClause
18891896 { $$ = new yy.Insert ({into: $5 , values: $7 , orreplace: true }); yy .extend ($$ ,$8 ); }
1890- | INSERT OR REPLACE Into Table ValuesListsList OutputClause
1897+ | INSERT OR REPLACE Into TargetTable ValuesListsList OutputClause
18911898 { $$ = new yy.Insert ({into: $5 , values: $6 , orreplace: true }); yy .extend ($$ ,$7 ); }
1892- | REPLACE Into Table Values ValuesListsList OutputClause
1899+ | REPLACE Into TargetTable Values ValuesListsList OutputClause
18931900 { $$ = new yy.Insert ({into: $3 , values: $5 , orreplace: true }); yy .extend ($$ ,$6 ); }
1894- | REPLACE Into Table ValuesListsList OutputClause
1901+ | REPLACE Into TargetTable ValuesListsList OutputClause
18951902 { $$ = new yy.Insert ({into: $3 , values: $4 , orreplace: true }); yy .extend ($$ ,$5 ); }
1896- | INSERT Into Table DEFAULT Values OutputClause
1903+ | INSERT Into TargetTable DEFAULT Values OutputClause
18971904 { $$ = new yy.Insert ({into: $3 , " default" : true }); yy .extend ($$ ,$6 ); }
1898- | INSERT Into Table LPAR ColumnsList RPAR Values ValuesListsList OutputClause
1905+ | INSERT Into TargetTable LPAR ColumnsList RPAR Values ValuesListsList OutputClause
18991906 { $$ = new yy.Insert ({into: $3 , columns: $5 , values: $8 }); yy .extend ($$ ,$9 ); }
1900- | INSERT Into Table LPAR ColumnsList RPAR ValuesListsList OutputClause
1907+ | INSERT Into TargetTable LPAR ColumnsList RPAR ValuesListsList OutputClause
19011908 { $$ = new yy.Insert ({into: $3 , columns: $5 , values: $7 }); yy .extend ($$ ,$9 ); }
1902- | INSERT Into Table Select OutputClause
1909+ | INSERT Into TargetTable Select OutputClause
19031910 { $$ = new yy.Insert ({into: $3 , select: $4 }); yy .extend ($$ ,$5 ); }
1904- | INSERT OR REPLACE Into Table Select OutputClause
1911+ | INSERT OR REPLACE Into TargetTable Select OutputClause
19051912 { $$ = new yy.Insert ({into: $5 , select: $6 , orreplace: true }); yy .extend ($$ ,$7 ); }
1906- | INSERT Into Table LPAR ColumnsList RPAR Select OutputClause
1913+ | INSERT Into TargetTable LPAR ColumnsList RPAR Select OutputClause
19071914 { $$ = new yy.Insert ({into: $3 , columns: $5 , select: $7 }); yy .extend ($$ ,$9 ); }
1908- | INSERT Into Table SET SetColumnsList OutputClause
1915+ | INSERT Into TargetTable SET SetColumnsList OutputClause
19091916 { $$ = new yy.Insert ({into: $3 , setcolumns: $5 }); yy .extend ($$ ,$6 ); }
19101917 ;
19111918
0 commit comments