From 39adda168758b3b3d19a3297adcbf7923d1f6931 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 27 Feb 2005 15:40:35 +0000 Subject: - Patch #17747 by Adrian: more PostgreSQL fixes. Committed part of the patch: 1. Removed a duplicate line from the changes to update.inc. 2. Excluded the session.inc changes: they did not make sense to me. 3. Excluded the search related changes in the node and search module. According to Steven these are not correct. --- modules/taxonomy/taxonomy.module | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'modules/taxonomy/taxonomy.module') diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index ea802def7..20b0939db 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -803,7 +803,13 @@ function _taxonomy_prepare_insert($data, $stage) { } else { foreach (array_values($data) as $value) { - $q[] = "'". str_replace('%', '%%', db_escape_string($value)) ."'"; + //Escape strings, but not integers + if (is_int($value)) { + $q[] = $value; + } + else { + $q[] = "'". str_replace('%', '%%', db_escape_string($value)) ."'"; + } } $result = implode(', ', $q); } -- cgit v1.2.3