MXS-1196: Recognize builtin Oracle functions

This commit is contained in:
Johan Wikman
2017-05-18 11:49:27 +03:00
parent 1d2ca5cde7
commit a5637a311c
3 changed files with 19 additions and 3 deletions

View File

@ -1187,7 +1187,7 @@ static void update_field_infos(QC_SQLITE_INFO* info,
{
info->type_mask |= (QUERY_TYPE_READ | QUERY_TYPE_MASTER_READ);
}
else if (!is_builtin_readonly_function(zToken))
else if (!is_builtin_readonly_function(zToken, this_unit.sql_mode == QC_SQL_MODE_ORACLE))
{
info->type_mask |= QUERY_TYPE_WRITE;
}