⚡ 优化 | 避免oracle 表名小写无法查询字段信息

This commit is contained in:
lengleng committed 2021-03-03 14:42:06 +08:00
1 parent 5ef6b7576b
commit a896cd6beb
1 file changed
+2 -2
@@ -13,7 +13,7 @@
WHERE
ut.TABLE_NAME = utc.TABLE_NAME
<if test="tableName != null and tableName.trim() != ''">
and ut.TABLE_NAME = UPPER ( #{tableName} )
and ut.TABLE_NAME = #{tableName}
</if>
ORDER BY ut.TABLE_NAME
</select>
@@ -53,7 +53,7 @@
AND ucc.COLUMN_NAME = col.
COLUMN_NAME LEFT JOIN user_constraints uc ON uc.CONSTRAINT_NAME = ucc.CONSTRAINT_NAME
WHERE
col.TABLE_NAME = UPPER ( #{tableName} )
col.TABLE_NAME = #{tableName}
) TEMP
WHERE
TEMP.row_flg = 1