Commit de099572 authored by Vincent Pelletier's avatar Vincent Pelletier

Use VARBINARY type for group_id column in portal_ids table: as data comes from...

Use VARBINARY type for group_id column in portal_ids table: as data comes from a dictionary, data can contain strings considered identical in VARCHAR interpretation, which would break clear_catalog action.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21609 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d5a12352
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="SQL" module="Products.ZSQLMethods.SQL"/>
<string>Products.ZSQLMethods.SQL</string> <tuple/>
<string>SQL</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -51,6 +48,12 @@ ...@@ -51,6 +48,12 @@
<tuple/> <tuple/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>allow_simple_one_argument_traversal</string> </key> <key> <string>allow_simple_one_argument_traversal</string> </key>
<value> <value>
...@@ -100,7 +103,7 @@ ...@@ -100,7 +103,7 @@
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
CREATE TABLE `portal_ids` (\n CREATE TABLE `portal_ids` (\n
`id_group` VARCHAR(255),\n `id_group` VARBINARY(255),\n
`last_id` BIGINT UNSIGNED,\n `last_id` BIGINT UNSIGNED,\n
PRIMARY KEY (`id_group`)\n PRIMARY KEY (`id_group`)\n
) TYPE=InnoDB\n ) TYPE=InnoDB\n
...@@ -117,9 +120,11 @@ INSERT INTO `portal_ids` (`id_group`, `last_id`) VALUES (<dtml-sqlvar sequence-k ...@@ -117,9 +120,11 @@ INSERT INTO `portal_ids` (`id_group`, `last_id`) VALUES (<dtml-sqlvar sequence-k
<value> <value>
<object> <object>
<klass> <klass>
<global name="SQL" module="Shared.DC.ZRDB.DA"/> <global name="__newobj__" module="copy_reg"/>
</klass> </klass>
<none/> <tuple>
<global name="SQL" module="Shared.DC.ZRDB.DA"/>
</tuple>
<state> <state>
<dictionary> <dictionary>
<item> <item>
...@@ -147,7 +152,7 @@ INSERT INTO `portal_ids` (`id_group`, `last_id`) VALUES (<dtml-sqlvar sequence-k ...@@ -147,7 +152,7 @@ INSERT INTO `portal_ids` (`id_group`, `last_id`) VALUES (<dtml-sqlvar sequence-k
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
CREATE TABLE `portal_ids` (\n CREATE TABLE `portal_ids` (\n
`id_group` VARCHAR(255),\n `id_group` VARBINARY(255),\n
`last_id` BIGINT UNSIGNED,\n `last_id` BIGINT UNSIGNED,\n
PRIMARY KEY (`id_group`)\n PRIMARY KEY (`id_group`)\n
) TYPE=InnoDB\n ) TYPE=InnoDB\n
......
108 110
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment