Rename columns that use reserved SQL words : items.left and items.right

This commit is contained in:
Romain LE DISEZ
2009-07-25 19:06:54 +02:00
parent 0aa3ec3ae9
commit 23bb6eb7e3
11 changed files with 102 additions and 162 deletions

View File

@@ -73,8 +73,8 @@ class notification {
->join("subscriptions", "users.id", "subscriptions.user_id")
->join("items", "subscriptions.item_id", "items.id")
->where("email IS NOT", null)
->where("items.left <=", $item->left)
->where("items.right >", $item->right)
->where("items.left_ptr <=", $item->left_ptr)
->where("items.right_ptr >", $item->right_ptr)
->find_all();
$subscribers = array();