diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-08-07 08:41:24 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-08-07 08:41:24 +0000 |
commit | a21275a58f5eecb8fac93010042a726e5d76e2c5 (patch) | |
tree | 76490913c40f39084002ed19398747b146437c36 /modules | |
parent | f23c24c8a31ea3787d5039d36de56001f731e22a (diff) | |
download | brdo-a21275a58f5eecb8fac93010042a726e5d76e2c5.tar.gz brdo-a21275a58f5eecb8fac93010042a726e5d76e2c5.tar.bz2 |
- Patch #165160 by hswong3i: made two SQL queries work on DB2.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/taxonomy/taxonomy.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index c7eaacc7c..923297b8e 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -821,7 +821,7 @@ function _taxonomy_term_children($tid) { * An array of matching term objects. */ function taxonomy_get_term_by_name($name) { - $db_result = db_query(db_rewrite_sql("SELECT t.tid, t.* FROM {term_data} t WHERE LOWER('%s') LIKE LOWER(t.name)", 't', 'tid'), trim($name)); + $db_result = db_query(db_rewrite_sql("SELECT t.tid, t.* FROM {term_data} t WHERE LOWER(t.name) LIKE LOWER('%s')", 't', 'tid'), trim($name)); $result = array(); while ($term = db_fetch_object($db_result)) { $result[] = $term; |