Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
integration
prechecker
Commits
9aaa767c
Commit
9aaa767c
authored
Feb 15, 2011
by
Eloy Lafuente
Browse files
Merge branch 'w07_MDL-26351_20_instquotes' of
git://github.com/skodak/moodle
parents
418b3b6e
438e22cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/ddl/postgres_sql_generator.php
View file @
9aaa767c
...
...
@@ -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
$st
r
d_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 ANS
Y
quotes, we need to check what is expected
// Postgres is gradually switching to ANS
I
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'
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment