Revision 10447
Added by Aaron Marcuse-Kubitza over 11 years ago
bin/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
bin/my2pg: commenting out table options: added explanatory comment, because it is not obvious from the regexp what this does