Revision 14453
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/schemas/util.sql | ||
---|---|---|
1496 | 1496 |
CREATE FUNCTION col_re() RETURNS text |
1497 | 1497 |
LANGUAGE sql IMMUTABLE |
1498 | 1498 |
AS $$ |
1499 |
SELECT '(?:"[^"\s]+"|\w+)'::text
|
|
1499 |
SELECT '(?:"(?:[^"\s]|"")+"|\w+)'::text
|
|
1500 | 1500 |
$$; |
1501 | 1501 |
|
1502 | 1502 |
|
Also available in: Unified diff
fix: schemas/util.sql: col_re(): support column names with " in them