Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Labels:None
-
Environment:win7 xamp mysql
Description
Hello, I have the following XML mapping
<entity name="Auth" table="Auth">
<id name="itemname" column="itemname" type="string" length="64" />
<id name="userid" column="userid" type="string" length="64" />
<field name="bizrule" column="bizrule" type="text" nullable="true" />
<field name="data" column="data" type="text" nullable="true" />
</entity>
And the sql output is:
CREATE TABLE Auth (itemname VARCHAR(255) NOT NULL, userid VARCHAR(255) NOT NULL, bizrule LONGTEXT DEFAULT NULL, data LONGTEXT DEFAULT NULL, PRIMARY KEY(itemname, userid)) ENGINE ...
So, the length atrtibute is always ignored. In MyIsam it breaks the script because of the maximum key limit ![]()
Activity
Lazar Otasevic
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Description |
Hello, I have the following XML mapping <entity name="Auth" table="Auth"> <id name="itemname" column="itemname" type="string" length="64" /> <id name="userid" column="userid" type="string" length="64" /> <field name="bizrule" column="bizrule" type="text" nullable="true" /> <field name="data" column="data" type="text" nullable="true" /> </entity> And the sql output is: CREATE TABLE Auth (itemname VARCHAR(255) NOT NULL, userid VARCHAR(255) NOT NULL, bizrule LONGTEXT DEFAULT NULL, data LONGTEXT DEFAULT NULL, PRIMARY KEY(itemname, userid)) ENGINE; So, the length atrtibute is always ignored. In MyIsam it breaks the script because of the maximum key limit :( |
Hello, I have the following XML mapping <entity name="Auth" table="Auth"> <id name="itemname" column="itemname" type="string" length="64" /> <id name="userid" column="userid" type="string" length="64" /> <field name="bizrule" column="bizrule" type="text" nullable="true" /> <field name="data" column="data" type="text" nullable="true" /> </entity> And the sql output is: CREATE TABLE Auth (itemname VARCHAR(255) NOT NULL, userid VARCHAR(255) NOT NULL, bizrule LONGTEXT DEFAULT NULL, data LONGTEXT DEFAULT NULL, PRIMARY KEY(itemname, userid)) ENGINE ... So, the length atrtibute is always ignored. In MyIsam it breaks the script because of the maximum key limit :( |