Project

General

Profile

« Previous | Next » 

Revision 7536

my2pg*: Replace '0000-00-00 00:00:00' with '-infinity'

View differences:

bin/my2pg.data
11 11
echo 'SET standard_conforming_strings = off;'
12 12
echo 'SET escape_string_warning = off;'
13 13
sed \
14
-e "s/'0000-00-00'/'-infinity'/g" \
14
-e "s/'0000-00-00( 00:00:00)?'/'-infinity'/g" \
15 15
"$@"
bin/my2pg
21 21
-e 's/ double/ double precision/g' \
22 22
-e 's/ (integer|bigint|double precision|float)(\([^)]*\))?( unsigned)?/ \1/g' \
23 23
-e 's/ datetime/ timestamp/g' \
24
-e "s/'0000-00-00'/'-infinity'/g" \
24
-e "s/'0000-00-00( 00:00:00)?'/'-infinity'/g" \
25 25
"$@"

Also available in: Unified diff