mirror of
https://github.com/moodle/moodle.git
synced 2025-04-24 09:55:33 +02:00
MDL-26351 fix property and docs typo
Credit goes to David Mudrak.
This commit is contained in:
parent
a2d242bc09
commit
438e22cc50
@ -56,7 +56,7 @@ class postgres_sql_generator extends sql_generator {
|
||||
public $rename_key_sql = null; //SQL sentence to rename one key (PostgreSQL doesn't support this!)
|
||||
//TABLENAME, OLDKEYNAME, NEWKEYNAME are dynamically replaced
|
||||
|
||||
protected $strd_strings = null; // '' or \' quotes
|
||||
protected $std_strings = null; // '' or \' quotes
|
||||
|
||||
/**
|
||||
* Reset a sequence to the id field of a table.
|
||||
@ -407,7 +407,7 @@ class postgres_sql_generator extends sql_generator {
|
||||
}
|
||||
|
||||
public function addslashes($s) {
|
||||
// Postgres is gradually switching to ANSY quotes, we need to check what is expected
|
||||
// Postgres is gradually switching to ANSI quotes, we need to check what is expected
|
||||
if (!isset($this->std_strings)) {
|
||||
$this->std_strings = ($this->mdb->get_field_sql("select setting from pg_settings where name = 'standard_conforming_strings'") === 'on');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user