forked from postgis/postgis
Prevent _ from matching any character. References #4959 for PostGIS 3.2.0. Mistake on last commit
parent
b4d57be9f9
commit
f86f090b0d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue