mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-29 19:20:23 +02:00
[ticket/16538] Add identifiers quoting
If reserved word is used as identifier, it must be quoted. If alias is used elsewhere in SQL statement, it must be quoted. PHPBB3-16535 PHPBB3-16538
This commit is contained in:
@@ -456,4 +456,12 @@ class factory implements driver_interface
|
||||
{
|
||||
return $this->get_driver()->sql_in_set($field, $array, $negate, $allow_empty_set);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function sql_quote($msg)
|
||||
{
|
||||
return $this->get_driver()->sql_quote($msg);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user