|
@@ -167,10 +167,10 @@
|
|
|
SELECT data_type FROM information_schema.columns WHERE table_name=#{initTableName} AND column_name = #{eKey}
|
|
|
</select>
|
|
|
<select id="selectFiledLength" resultType="java.util.Map">
|
|
|
- select column_name `key`,character_octet_length length from INFORMATION_SCHEMA.COLUMNS where table_name = #{initTableName}
|
|
|
+ select column_name `key`,character_maximum_length length from INFORMATION_SCHEMA.COLUMNS where table_name = #{initTableName}
|
|
|
</select>
|
|
|
<select id="selectFiledDataMaxLength" resultType="java.lang.Integer">
|
|
|
- select MAX(LENGTH(${key})) from ${tableName}
|
|
|
+ select MAX(CHAR_LENGTH(${key})) from ${tableName}
|
|
|
</select>
|
|
|
|
|
|
</mapper>
|