From af2b32cd3df33c50cb0860a70025e89a424ec940 Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Tue, 12 Jan 2010 20:59:46 -0500 Subject: [PATCH] Remove column list so that this insert works regardless of the primary key --- framework/Db/test/Horde/Db/Adapter/MysqliTest.php | 2 +- framework/Db/test/Horde/Db/Adapter/Pdo/MysqlTest.php | 2 +- framework/Db/test/Horde/Db/Adapter/Pdo/PgsqlTest.php | 2 +- framework/Db/test/Horde/Db/Adapter/Pdo/SqliteTest.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/framework/Db/test/Horde/Db/Adapter/MysqliTest.php b/framework/Db/test/Horde/Db/Adapter/MysqliTest.php index 09882c362..0b604f19e 100644 --- a/framework/Db/test/Horde/Db/Adapter/MysqliTest.php +++ b/framework/Db/test/Horde/Db/Adapter/MysqliTest.php @@ -1261,7 +1261,7 @@ class Horde_Db_Adapter_MysqliTest extends PHPUnit_Framework_TestCase try { // make sure table was created - $sql = "INSERT INTO $name (id, name, is_college) + $sql = "INSERT INTO $name VALUES (1, 'mlb', 0)"; $this->_conn->insert($sql); } catch (Exception $e) {} diff --git a/framework/Db/test/Horde/Db/Adapter/Pdo/MysqlTest.php b/framework/Db/test/Horde/Db/Adapter/Pdo/MysqlTest.php index 9ac13c7f0..d6a82aa53 100644 --- a/framework/Db/test/Horde/Db/Adapter/Pdo/MysqlTest.php +++ b/framework/Db/test/Horde/Db/Adapter/Pdo/MysqlTest.php @@ -1281,7 +1281,7 @@ class Horde_Db_Adapter_Pdo_MysqlTest extends PHPUnit_Framework_TestCase try { // make sure table was created - $sql = "INSERT INTO $name (id, name, is_college) + $sql = "INSERT INTO $name VALUES (1, 'mlb', 0)"; $this->_conn->insert($sql); } catch (Exception $e) {} diff --git a/framework/Db/test/Horde/Db/Adapter/Pdo/PgsqlTest.php b/framework/Db/test/Horde/Db/Adapter/Pdo/PgsqlTest.php index 859c965e0..ee9105fd3 100644 --- a/framework/Db/test/Horde/Db/Adapter/Pdo/PgsqlTest.php +++ b/framework/Db/test/Horde/Db/Adapter/Pdo/PgsqlTest.php @@ -1124,7 +1124,7 @@ class Horde_Db_Adapter_Pdo_PgsqlTest extends PHPUnit_Framework_TestCase try { // make sure table was created - $sql = "INSERT INTO $name (id, name, is_college) + $sql = "INSERT INTO $name VALUES (1, 'mlb', 'f')"; $this->_conn->insert($sql); } catch (Exception $e) {} diff --git a/framework/Db/test/Horde/Db/Adapter/Pdo/SqliteTest.php b/framework/Db/test/Horde/Db/Adapter/Pdo/SqliteTest.php index e38a0953e..291153428 100644 --- a/framework/Db/test/Horde/Db/Adapter/Pdo/SqliteTest.php +++ b/framework/Db/test/Horde/Db/Adapter/Pdo/SqliteTest.php @@ -1142,7 +1142,7 @@ class Horde_Db_Adapter_Pdo_SqliteTest extends PHPUnit_Framework_TestCase try { // make sure table was created - $sql = "INSERT INTO $name (id, name, is_college) + $sql = "INSERT INTO $name VALUES (1, 'mlb', 0)"; $this->_conn->insert($sql); } catch (Exception $e) {} -- 2.11.0