Project

General

Profile

« Previous | Next » 

Revision 10447

bin/my2pg: commenting out table options: added explanatory comment, because it is not obvious from the regexp what this does

View differences:

my2pg
22 22
-e 's/ (CHARACTER SET|COLLATE) [0-9A-Za-z_]+//g' \
23 23
-e "s! (COMMENT '.*')! /*\1*/!g
24 24
# COMMENTs never span multiple lines because newlines are encoded as \n" \
25
-e 's!^\) (.*);$!) /*\1*/;!g' \
25
-e 's!^\) (.*);$!) /*\1*/;!g
26
# comment out table options' \
26 27
${sql_ascii:+-e 's/ varbinary/ text/g' }\
27 28
-e 's/ (binary|blob|varbinary)/ bytea/g' \
28 29
-e 's/ (tinytext|mediumtext|longtext)/ text/g' \

Also available in: Unified diff