Skip to content

Commit 8c7e189

Browse files
committed
Upgrade my2pg version 1.23.
1 parent c783158 commit 8c7e189

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

contrib/mysql/my2pg.pl

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3636
# SUCH DAMAGE.
3737
#
38-
# $My2pg: my2pg.pl,v 1.22 2001/12/06 19:32:20 fonin Exp $
39-
# $Id: my2pg.pl,v 1.6 2002/01/07 22:36:51 momjian Exp $
38+
# $My2pg: my2pg.pl,v 1.23 2001/12/06 19:32:20 fonin Exp $
39+
# $Id: my2pg.pl,v 1.7 2002/02/08 14:47:56 momjian Exp $
4040

4141
# TODO:
4242
# + Handle SETs
@@ -47,8 +47,12 @@
4747

4848
#
4949
# $Log: my2pg.pl,v $
50-
# Revision 1.6 2002/01/07 22:36:51 momjian
51-
# Update my2pg to version 1.22.
50+
# Revision 1.7 2002/02/08 14:47:56 momjian
51+
# Upgrade my2pg version 1.23.
52+
#
53+
# Revision 1.23 2002/02/07 22:13:52 fonin
54+
# Bugfix by Hans-Juergen Schoenig <hs@cybertec.at>: additional space after
55+
# FLOAT8 is required.
5256
#
5357
# Revision 1.22 2001/12/06 19:32:20 fonin
5458
# Patch: On line 594 where you check for UNIQUE, I believe the regex should try
@@ -147,7 +151,7 @@
147151
$|=1;
148152

149153
print("------------------------------------------------------------------");
150-
print("\n-- My2Pg \$Revision: 1.6 $ \translated dump");
154+
print("\n-- My2Pg 1.23 translated dump");
151155
print("\n--");
152156
print("\n------------------------------------------------------------------");
153157

@@ -169,7 +173,7 @@
169173
# push header to libtypes.c
170174
open(LIBTYPES,">$libtypesource");
171175
print LIBTYPES "/******************************************************";
172-
print LIBTYPES "\n * My2Pg \$Revision: 1.6 $ \translated dump";
176+
print LIBTYPES "\n * My2Pg \$Revision: 1.7 $ \translated dump";
173177
print LIBTYPES "\n * User types definitions";
174178
print LIBTYPES "\n ******************************************************/";
175179
print LIBTYPES "\n\n#include <postgres.h>\n";
@@ -198,10 +202,10 @@
198202
s/bigint\(\d+\)/INT8/i;
199203
s/int\(\d+\)/INT4/i;
200204
s/float(\(\d+,\d*\))/DECIMAL$1/i;
201-
s/double precision/FLOAT8/i;
205+
s/double precision/FLOAT8 /i;
202206
s/([\W])double(\(\d+,\d*\))/$1DECIMAL$2/i;
203-
s/([\W])double[\W]/$1FLOAT8/i;
204-
s/([\W])real[\W]/$1FLOAT8/i;
207+
s/([\W])double[\W]/$1FLOAT8 /i;
208+
s/([\W])real[\W]/$1FLOAT8 /i;
205209
s/([\W])real(\(\d+,\d*\))/$1DECIMAL$2/i;
206210

207211
# Convert string types
@@ -700,7 +704,7 @@
700704

701705
open(MAKE,">Makefile");
702706
print MAKE "#
703-
# My2Pg \$Revision: 1.6 $ \translated dump
707+
# My2Pg \$Revision: 1.7 $ \translated dump
704708
# Makefile
705709
#
706710

0 commit comments

Comments
 (0)