提交 501e979e 编写于 作者: N nanaya

Use proper casting

上级 dd65843a
......@@ -772,9 +772,9 @@ def can_perform_case_insensitive_comparison_for?(column)
SELECT exists(
SELECT * FROM pg_proc
INNER JOIN pg_cast
ON casttarget::text::oidvector = proargtypes
ON ARRAY[casttarget]::oidvector = proargtypes
WHERE proname = 'lower'
AND castsource = '#{column.sql_type}'::regtype::oid
AND castsource = #{quote column.sql_type}::regtype
)
end_sql
execute_and_clear(sql, "SCHEMA", []) do |result|
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册