Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
24f171b4
Commit
24f171b4
authored
Apr 25, 2007
by
Geoff Cant
Committed by
Geoff Cant
Apr 25, 2007
Browse files
When setting up a mysql db connection, set the SQL_MODE to postgres compatible.
parent
285244d0
Changes
1
Show whitespace changes
Inline
Side-by-side
htdocs/lib/dml.php
View file @
24f171b4
...
@@ -1289,6 +1289,10 @@ function configure_dbconnection() {
...
@@ -1289,6 +1289,10 @@ function configure_dbconnection() {
increment_perf_db_writes
();
increment_perf_db_writes
();
$db
->
Execute
(
"SET NAMES 'utf8'"
);
$db
->
Execute
(
"SET NAMES 'utf8'"
);
if
(
is_mysql
()
)
{
$db
->
Execute
(
"SET SQL_MODE='POSTGRESQL'"
);
}
// more later..
// more later..
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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