From: Ross Smith II Date: Sun, 17 Aug 2003 01:41:48 +0000 (+0000) Subject: Added DOUBLE PRECISION. Parser::MySQL chokes on this X-Git-Tag: v0.04~313 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6661fc69dcc7ea9509922478475b343b2a36f2fb;p=dbsrgits%2FSQL-Translator.git Added DOUBLE PRECISION. Parser::MySQL chokes on this --- diff --git a/t/data/mysql/entire_syntax.sql b/t/data/mysql/entire_syntax.sql index 5fba0bf..18682bf 100644 --- a/t/data/mysql/entire_syntax.sql +++ b/t/data/mysql/entire_syntax.sql @@ -1,4 +1,4 @@ --- $Header: /home/faga/work/sqlfairy_svn/sqlfairy-cvsbackup/sqlfairy/t/data/mysql/entire_syntax.sql,v 1.1 2003-08-17 00:42:08 rossta Exp $ +-- $Header: /home/faga/work/sqlfairy_svn/sqlfairy-cvsbackup/sqlfairy/t/data/mysql/entire_syntax.sql,v 1.2 2003-08-17 01:41:48 rossta Exp $ -- all data types DROP TABLE IF EXISTS t01; @@ -11,7 +11,8 @@ CREATE TABLE t01 ( i06 BIGINT, r01 REAL, r02 DOUBLE, - r03 FLOAT, + r03 DOUBLE PRECISION, + r04 FLOAT, n01 DECIMAL, n02 NUMERIC, c01 CHAR(10), @@ -47,8 +48,9 @@ CREATE TABLE t01 ( i16 BIGINT(1), r11 REAL(2,1), r12 DOUBLE(2,1), - r13 FLOAT(1), - r14 FLOAT(2,1), + r13 DOUBLE PRECISION(2,1), + r14 FLOAT(1), + r15 FLOAT(2,1), n11 DECIMAL(1), n12 DECIMAL(2,1), n13 NUMERIC(2), @@ -68,7 +70,8 @@ CREATE TABLE t02 ( i06 BIGINT NOT NULL, r01 REAL NOT NULL, r02 DOUBLE NOT NULL, - r03 FLOAT NOT NULL, + r03 DOUBLE PRECISION NOT NULL, + r04 FLOAT NOT NULL, n01 DECIMAL NOT NULL, n02 NUMERIC NOT NULL, c01 CHAR(10) NOT NULL, @@ -104,8 +107,9 @@ CREATE TABLE t02 ( i16 BIGINT(1) NOT NULL, r11 REAL(2,1) NOT NULL, r12 DOUBLE(2,1) NOT NULL, - r13 FLOAT(1) NOT NULL, - r14 FLOAT(2,1) NOT NULL, + r13 DOUBLE PRECISION(2,1) NOT NULL, + r14 FLOAT(1) NOT NULL, + r15 FLOAT(2,1) NOT NULL, n11 DECIMAL(1) NOT NULL, n12 DECIMAL(2,1) NOT NULL, n13 NUMERIC(2) NOT NULL, @@ -125,7 +129,8 @@ CREATE TABLE t03 ( i06 BIGINT DEFAULT 0, r01 REAL DEFAULT 0, r02 DOUBLE DEFAULT 0, - r03 FLOAT DEFAULT 0, + r03 DOUBLE PRECISION DEFAULT 0, + r04 FLOAT DEFAULT 0, n01 DECIMAL DEFAULT 0, n02 NUMERIC DEFAULT 0, c01 CHAR(10) DEFAULT '', @@ -161,8 +166,9 @@ CREATE TABLE t03 ( i16 BIGINT(1) DEFAULT 0, r11 REAL(2,1) DEFAULT 0, r12 DOUBLE(2,1) DEFAULT 0, - r13 FLOAT(1) DEFAULT 0, - r14 FLOAT(2,1) DEFAULT 0, + r13 DOUBLE PRECISION(2,1) DEFAULT 0, + r14 FLOAT(1) DEFAULT 0, + r15 FLOAT(2,1) DEFAULT 0, n11 DECIMAL(1) DEFAULT 0, n12 DECIMAL(2,1) DEFAULT 0, n13 NUMERIC(2) DEFAULT 0, @@ -182,7 +188,8 @@ CREATE TABLE t04 ( i06 BIGINT NOT NULL DEFAULT 0, r01 REAL NOT NULL DEFAULT 0, r02 DOUBLE NOT NULL DEFAULT 0, - r03 FLOAT NOT NULL DEFAULT 0, + r03 DOUBLE PRECISION NOT NULL DEFAULT 0, + r04 FLOAT NOT NULL DEFAULT 0, n01 DECIMAL NOT NULL DEFAULT 0, n02 NUMERIC NOT NULL DEFAULT 0, c01 CHAR(10) NOT NULL DEFAULT '', @@ -218,8 +225,9 @@ CREATE TABLE t04 ( i16 BIGINT(1) NOT NULL DEFAULT 0, r11 REAL(2,1) NOT NULL DEFAULT 0, r12 DOUBLE(2,1) NOT NULL DEFAULT 0, - r13 FLOAT(1) NOT NULL DEFAULT 0, - r14 FLOAT(2,1) NOT NULL DEFAULT 0, + r13 DOUBLE PRECISION(2,1) NOT NULL DEFAULT 0, + r14 FLOAT(1) NOT NULL DEFAULT 0, + r15 FLOAT(2,1) NOT NULL DEFAULT 0, n11 DECIMAL(1) NOT NULL DEFAULT 0, n12 DECIMAL(2,1) NOT NULL DEFAULT 0, n13 NUMERIC(2) NOT NULL DEFAULT 0, @@ -240,7 +248,8 @@ CREATE TABLE t04 ( -- /* i06 BIGINT NULL, -- /* r01 REAL NULL, -- /* r02 DOUBLE NULL, --- /* r03 FLOAT NULL, +-- /* r03 DOUBLE PRECISION NULL, +-- /* r04 FLOAT NULL, -- /* n01 DECIMAL NULL, -- /* n02 NUMERIC NULL, -- /* c01 CHAR(10) NULL, @@ -276,8 +285,9 @@ CREATE TABLE t04 ( -- /* i16 BIGINT(1) NULL, -- /* r11 REAL(2,1) NULL, -- /* r12 DOUBLE(2,1) NULL, --- /* r13 FLOAT(1) NULL, --- /* r14 FLOAT(2,1) NULL, +-- /* r13 DOUBLE PRECISION(2,1) NULL, +-- /* r14 FLOAT(1) NULL, +-- /* r15 FLOAT(2,1) NULL, -- /* n11 DECIMAL(1) NULL, -- /* n12 DECIMAL(2,1) NULL, -- /* n13 NUMERIC(2) NULL, @@ -297,7 +307,8 @@ CREATE TABLE t04 ( -- /* i06 BIGINT NULL DEFAULT 0, -- /* r01 REAL NULL DEFAULT 0, -- /* r02 DOUBLE NULL DEFAULT 0, --- /* r03 FLOAT NULL DEFAULT 0, +-- /* r03 DOUBLE PRECISION NULL DEFAULT 0, +-- /* r04 FLOAT NULL DEFAULT 0, -- /* n01 DECIMAL NULL DEFAULT 0, -- /* n02 NUMERIC NULL DEFAULT 0, -- /* c01 CHAR(10) NULL DEFAULT '', @@ -333,8 +344,9 @@ CREATE TABLE t04 ( -- /* i16 BIGINT(1) NULL DEFAULT 0, -- /* r11 REAL(2,1) NULL DEFAULT 0, -- /* r12 DOUBLE(2,1) NULL DEFAULT 0, --- /* r13 FLOAT(1) NULL DEFAULT 0, --- /* r14 FLOAT(2,1) NULL DEFAULT 0, +-- /* r13 DOUBLE PRECISION(2,1) NULL DEFAULT 0, +-- /* r14 FLOAT(1) NULL DEFAULT 0, +-- /* r15 FLOAT(2,1) NULL DEFAULT 0, -- /* n11 DECIMAL(1) NULL DEFAULT 0, -- /* n12 DECIMAL(2,1) NULL DEFAULT 0, -- /* n13 NUMERIC(2) NULL DEFAULT 0, @@ -355,7 +367,8 @@ CREATE TABLE t11 ( i06 BIGINT UNSIGNED NOT NULL DEFAULT 0, r01 REAL UNSIGNED NOT NULL DEFAULT 0, r02 DOUBLE UNSIGNED NOT NULL DEFAULT 0, - r03 FLOAT UNSIGNED NOT NULL DEFAULT 0, + r03 DOUBLE PRECISION UNSIGNED NOT NULL DEFAULT 0, + r04 FLOAT UNSIGNED NOT NULL DEFAULT 0, n01 DECIMAL UNSIGNED NOT NULL DEFAULT 0, n02 NUMERIC UNSIGNED NOT NULL DEFAULT 0, @@ -367,8 +380,9 @@ CREATE TABLE t11 ( i16 BIGINT(1) UNSIGNED NOT NULL DEFAULT 0, r11 REAL(2,1) UNSIGNED NOT NULL DEFAULT 0, r12 DOUBLE(2,1) UNSIGNED NOT NULL DEFAULT 0, - r13 FLOAT(1) UNSIGNED NOT NULL DEFAULT 0, - r14 FLOAT(2,1) UNSIGNED NOT NULL DEFAULT 0, + r13 DOUBLE PRECISION(2,1) UNSIGNED NOT NULL DEFAULT 0, + r14 FLOAT(1) UNSIGNED NOT NULL DEFAULT 0, + r15 FLOAT(2,1) UNSIGNED NOT NULL DEFAULT 0, n11 DECIMAL(1) UNSIGNED NOT NULL DEFAULT 0, n12 DECIMAL(2,1) UNSIGNED NOT NULL DEFAULT 0, n13 NUMERIC(2) UNSIGNED NOT NULL DEFAULT 0, @@ -386,7 +400,8 @@ CREATE TABLE t12 ( i06 BIGINT ZEROFILL NOT NULL DEFAULT 0, r01 REAL ZEROFILL NOT NULL DEFAULT 0, r02 DOUBLE ZEROFILL NOT NULL DEFAULT 0, - r03 FLOAT ZEROFILL NOT NULL DEFAULT 0, + r03 DOUBLE PRECISION ZEROFILL NOT NULL DEFAULT 0, + r04 FLOAT ZEROFILL NOT NULL DEFAULT 0, n01 DECIMAL ZEROFILL NOT NULL DEFAULT 0, n02 NUMERIC ZEROFILL NOT NULL DEFAULT 0, @@ -398,8 +413,9 @@ CREATE TABLE t12 ( i16 BIGINT(1) ZEROFILL NOT NULL DEFAULT 0, r11 REAL(2,1) ZEROFILL NOT NULL DEFAULT 0, r12 DOUBLE(2,1) ZEROFILL NOT NULL DEFAULT 0, - r13 FLOAT(1) ZEROFILL NOT NULL DEFAULT 0, - r14 FLOAT(2,1) ZEROFILL NOT NULL DEFAULT 0, + r13 DOUBLE PRECISION(2,1) ZEROFILL NOT NULL DEFAULT 0, + r14 FLOAT(1) ZEROFILL NOT NULL DEFAULT 0, + r15 FLOAT(2,1) ZEROFILL NOT NULL DEFAULT 0, n11 DECIMAL(1) ZEROFILL NOT NULL DEFAULT 0, n12 DECIMAL(2,1) ZEROFILL NOT NULL DEFAULT 0, n13 NUMERIC(2,1) ZEROFILL NOT NULL DEFAULT 0, @@ -417,7 +433,8 @@ CREATE TABLE t13 ( i06 BIGINT UNSIGNED ZEROFILL NOT NULL DEFAULT 0, r01 REAL UNSIGNED ZEROFILL NOT NULL DEFAULT 0, r02 DOUBLE UNSIGNED ZEROFILL NOT NULL DEFAULT 0, - r03 FLOAT UNSIGNED ZEROFILL NOT NULL DEFAULT 0, + r03 DOUBLE PRECISION UNSIGNED ZEROFILL NOT NULL DEFAULT 0, + r04 FLOAT UNSIGNED ZEROFILL NOT NULL DEFAULT 0, n01 DECIMAL UNSIGNED ZEROFILL NOT NULL DEFAULT 0, n02 NUMERIC UNSIGNED ZEROFILL NOT NULL DEFAULT 0, @@ -429,12 +446,13 @@ CREATE TABLE t13 ( i16 BIGINT(1) UNSIGNED ZEROFILL NOT NULL DEFAULT 0, r11 REAL(2,1) UNSIGNED ZEROFILL NOT NULL DEFAULT 0, r12 DOUBLE(2,1) UNSIGNED ZEROFILL NOT NULL DEFAULT 0, - r13 FLOAT(1) UNSIGNED ZEROFILL NOT NULL DEFAULT 0, - r14 FLOAT(2,1) UNSIGNED ZEROFILL NOT NULL DEFAULT 0, + r13 DOUBLE PRECISION(2,1) UNSIGNED ZEROFILL NOT NULL DEFAULT 0, + r14 FLOAT(1) UNSIGNED ZEROFILL NOT NULL DEFAULT 0, + r15 FLOAT(2,1) UNSIGNED ZEROFILL NOT NULL DEFAULT 0, n11 DECIMAL(1) UNSIGNED ZEROFILL NOT NULL DEFAULT 0, - n12 DECIMAL(2,1) UNSIGNED ZEROFILL NOT NULL DEFAULT 0 + n12 DECIMAL(2,1) UNSIGNED ZEROFILL NOT NULL DEFAULT 0, n13 NUMERIC(2,1) UNSIGNED ZEROFILL NOT NULL DEFAULT 0, - n14 NUMERIC(2,1) UNSIGNED ZEROFILL NOT NULL DEFAULT 0, + n14 NUMERIC(2,1) UNSIGNED ZEROFILL NOT NULL DEFAULT 0 ); -- all keys