summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-11-27 13:24:58 +0000
committerDries Buytaert <dries@buytaert.net>2003-11-27 13:24:58 +0000
commita068d81a9de459b131ca64f72cc4dafc675e9833 (patch)
tree4506f00e8af1ec634a75c5a68d8fb10ebef2f6b2 /modules
parent1fb206d958eb7cab91c4e62867eba133c29e3ecb (diff)
downloadbrdo-a068d81a9de459b131ca64f72cc4dafc675e9833.tar.gz
brdo-a068d81a9de459b131ca64f72cc4dafc675e9833.tar.bz2
- Fixed non-ANSI SQL query in path module
Diffstat (limited to 'modules')
-rw-r--r--modules/path.module2
-rw-r--r--modules/path/path.module2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/path.module b/modules/path.module
index af4efe461..24ac11ac0 100644
--- a/modules/path.module
+++ b/modules/path.module
@@ -60,7 +60,7 @@ function path_set_alias($path = NULL, $alias = NULL) {
// We have an insert:
if ($path_count == 0 && $alias_count == 0) {
- db_query("INSERT INTO {url_alias} SET src = '%s', dst = '%s'", $path, $alias);
+ db_query("INSERT INTO {url_alias} (src, dst) VALUES ('%s', '%s')", $path, $alias);
drupal_rebuild_path_map();
}
else if ($path_count == 1 && $alias_count == 0) {
diff --git a/modules/path/path.module b/modules/path/path.module
index af4efe461..24ac11ac0 100644
--- a/modules/path/path.module
+++ b/modules/path/path.module
@@ -60,7 +60,7 @@ function path_set_alias($path = NULL, $alias = NULL) {
// We have an insert:
if ($path_count == 0 && $alias_count == 0) {
- db_query("INSERT INTO {url_alias} SET src = '%s', dst = '%s'", $path, $alias);
+ db_query("INSERT INTO {url_alias} (src, dst) VALUES ('%s', '%s')", $path, $alias);
drupal_rebuild_path_map();
}
else if ($path_count == 1 && $alias_count == 0) {