r1352 + fix upgrade for MySQL-4
authorDenis Ovsienko <infrastation@yandex.ru>
Wed, 5 Dec 2007 12:53:36 +0000 (12:53 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Wed, 5 Dec 2007 12:53:36 +0000 (12:53 +0000)
upgrade.php

index 943b2340c85b5d1ce71b2fe77ebcc8dea8522168..a2cb2cafe77d1d4e1911878b140b95154fed0e1b 100644 (file)
@@ -375,7 +375,7 @@ echo '<pre>';
                                        }
                                        elseif (in_array ($chapter_no, $chaplist))
                                        {
                                        }
                                        elseif (in_array ($chapter_no, $chaplist))
                                        {
-                                               $q81 = "select object_id, attr_id from " .
+                                               $q81 = "select object_id, AttributeValue.attr_id from " .
                                                "AttributeValue natural join Attribute natural join AttributeMap " .
                                                "inner join RackObject on RackObject.id = object_id and RackObject.objtype_id = AttributeMap.objtype_id " .
                                                "where attr_type = 'dict' and chapter_no = ${chapter_no} and uint_value = ${oldkey}";
                                                "AttributeValue natural join Attribute natural join AttributeMap " .
                                                "inner join RackObject on RackObject.id = object_id and RackObject.objtype_id = AttributeMap.objtype_id " .
                                                "where attr_type = 'dict' and chapter_no = ${chapter_no} and uint_value = ${oldkey}";