Prevent _ from matching any character. References #4959 for PostGIS 3.2.0. Mistake on last commit

stable-3.2
Regina Obe 2021-07-31 23:48:11 -04:00
parent b4d57be9f9
commit f86f090b0d
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ CREATE OR REPLACE FUNCTION drop_state_tables_generate_script(param_state text, p
$$
SELECT array_to_string(array_agg('DROP TABLE ' || quote_ident(table_schema) || '.' || quote_ident(table_name) || ';'),E'\n')
FROM (SELECT * FROM information_schema.tables
WHERE table_schema = $2 AND table_name like '~_%' ESCAPE '~' ORDER BY table_name) AS foo;
WHERE table_schema = $2 AND table_name like lower($1) || '~_%' ESCAPE '~' ORDER BY table_name) AS foo;
;
$$
LANGUAGE sql VOLATILE;