Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Part2: MDEV-12518 Unify sql_yacc.yy and sql_yacc_ora.yy
Generate sql_yacc_ora.yy from sql_yacc.yy , by using cmake script which does some simple string(REPLACE)
- Loading branch information
Showing
5 changed files
with
40 additions
and
19,058 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
|
|
||
| file(READ "${IN}" yytmp) | ||
|
|
||
| # Comment out sql_mode=DEFAULT rules and directives (e.g. %expect, %type) | ||
| string(REPLACE "/* Start SQL_MODE_DEFAULT_SPECIFIC */" | ||
| "/* Start SQL_MODE_DEFAULT_SPECIFIC" yytmp "${yytmp}") | ||
| string(REPLACE "/* End SQL_MODE_DEFAULT_SPECIFIC */" | ||
| "End SQL_MODE_DEFAULT_SPECIFIC */" yytmp "${yytmp}") | ||
|
|
||
| # Uncomment sql_mode=ORACLE rules and directives | ||
| string(REPLACE "/* Start SQL_MODE_ORACLE_SPECIFIC" | ||
| "/* Start SQL_MODE_ORACLE_SPECIFIC */" yytmp "${yytmp}") | ||
| string(REPLACE "End SQL_MODE_ORACLE_SPECIFIC */" | ||
| "/* End SQL_MODE_ORACLE_SPECIFIC */" yytmp "${yytmp}") | ||
| file(WRITE "${OUT}" "${yytmp}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.