Skip to content
Snippets Groups Projects
Commit 54730ecf authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FIX #5520 add OR REPLACE in order_alphanum function

parent 89c18172
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
-- -- -- --
-- -- -- --
-- *************************************************************************-- -- *************************************************************************--
CREATE FUNCTION order_alphanum(text) RETURNS text AS $$ CREATE OR REPLACE FUNCTION order_alphanum(text) RETURNS text AS $$
SELECT regexp_replace(regexp_replace(regexp_replace(regexp_replace($1, SELECT regexp_replace(regexp_replace(regexp_replace(regexp_replace($1,
E'(^|\\D)(\\d{1,3}($|\\D))', E'\\1000\\2', 'g'), E'(^|\\D)(\\d{1,3}($|\\D))', E'\\1000\\2', 'g'),
E'(^|\\D)(\\d{4,6}($|\\D))', E'\\1000\\2', 'g'), E'(^|\\D)(\\d{4,6}($|\\D))', E'\\1000\\2', 'g'),
...@@ -98,8 +98,6 @@ WITH ( ...@@ -98,8 +98,6 @@ WITH (
OIDS=FALSE OIDS=FALSE
); );
DROP TABLE IF EXISTS seda; DROP TABLE IF EXISTS seda;
CREATE TABLE seda CREATE TABLE seda
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment