Project

General

Profile

1 532 aaronmk
"PostgreSQL","MySQL","Comments"
2 687 aaronmk
,,"PostgreSQL-only features"
3
"^SET\b[^;]*;",,
4
"^(?:CREATE|ALTER) (?:AGGREGATE|SEQUENCE)\b[^;]*;",,
5
"^COMMENT\b[^;]*;",,
6
"^ALTER TABLE\b[^;]*\bSET DEFAULT nextval\([^;]*\)[^;]*;",,
7
"^CREATE\b[^;]*\bINDEX\b[^;]*\([^;]*\([^;]*;",,
8
"\bDEFAULT \w*\(.*\)",,".* rather than .*? to allow nested ()"
9
"^(CREATE\b[^;]*\bINDEX\b[^;]*\b)USING \w+","\1",
10
"(?<=\bALTER TABLE )ONLY ",,
11
,,"syntax changes"
12 537 aaronmk
"^--(?=\S)","\g<0> ",
13 561 aaronmk
"""([^""]*?)""","`\1`",
14 574 aaronmk
"(?<=DEFAULT )(\d+|'[^']*')::\w+(?: \w+)*","\1",
15
"(\d+|'[^']*')::(\w+(?: \w+)*)","CAST(\1 AS \2)",
16 687 aaronmk
,,"datatypes"
17 534 aaronmk
"\bserial( NOT NULL\b)?","int(11)\1 AUTO_INCREMENT",
18 687 aaronmk
"oid","int(11)",
19 532 aaronmk
"Integer","int(11)",
20
"Boolean","int(1)",
21 687 aaronmk
"bytea","blob",
22
" with time zone\b",,
23
"fulltext","\g<0>__",
24
"\btimestamp\b(?: with time zone\b)?(?! NOT NULL\b)","\g<0> NULL",