mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
16 lines
702 B
CMake
16 lines
702 B
CMake
|
|
||
|
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}")
|