diff options
author | Romain LE DISEZ <romain.git@ledisez.net> | 2009-07-25 19:06:54 +0200 |
---|---|---|
committer | Romain LE DISEZ <romain.git@ledisez.net> | 2009-07-25 19:06:54 +0200 |
commit | 23bb6eb7e35637c8a2124216dbb6d3246ad3d702 (patch) | |
tree | ff81a60c9deadcc1edda801d4680f567ee3a9b18 /modules/gallery/tests/Database_Test.php | |
parent | 0aa3ec3ae90a101b2bfc1b395a1749551da22287 (diff) |
Rename columns that use reserved SQL words : items.left and items.right
Diffstat (limited to 'modules/gallery/tests/Database_Test.php')
-rw-r--r-- | modules/gallery/tests/Database_Test.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/gallery/tests/Database_Test.php b/modules/gallery/tests/Database_Test.php index bd3d2f53..d83212ad 100644 --- a/modules/gallery/tests/Database_Test.php +++ b/modules/gallery/tests/Database_Test.php @@ -103,15 +103,15 @@ class Database_Test extends Unit_Test_Case { $sql = "UPDATE {test_tables} SET `name` = '{test string}' " . "WHERE `item_id` IN " . " (SELECT `id` FROM {items} " . - " WHERE `left` >= 1 " . - " AND `right` <= 6)"; + " WHERE `left_ptr` >= 1 " . + " AND `right_ptr` <= 6)"; $sql = $db->add_table_prefixes($sql); $expected = "UPDATE g3test_test_tables SET `name` = '{test string}' " . "WHERE `item_id` IN " . " (SELECT `id` FROM g3test_items " . - " WHERE `left` >= 1 " . - " AND `right` <= 6)"; + " WHERE `left_ptr` >= 1 " . + " AND `right_ptr` <= 6)"; $this->assert_same($expected, $sql); } |