Remove column list so that this insert works regardless of the primary key
authorChuck Hagenbuch <chuck@horde.org>
Wed, 13 Jan 2010 01:59:46 +0000 (20:59 -0500)
committerChuck Hagenbuch <chuck@horde.org>
Wed, 13 Jan 2010 02:03:18 +0000 (21:03 -0500)
framework/Db/test/Horde/Db/Adapter/MysqliTest.php
framework/Db/test/Horde/Db/Adapter/Pdo/MysqlTest.php
framework/Db/test/Horde/Db/Adapter/Pdo/PgsqlTest.php
framework/Db/test/Horde/Db/Adapter/Pdo/SqliteTest.php

index 09882c3..0b604f1 100644 (file)
@@ -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) {}
index 9ac13c7..d6a82aa 100644 (file)
@@ -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) {}
index 859c965..ee9105f 100644 (file)
@@ -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) {}
index e38a095..2911534 100644 (file)
@@ -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) {}