From d3a70e65aaba7aeeb8d56e04bd277ceafee8df8c Mon Sep 17 00:00:00 2001 From: ysnglee2000 Date: Mon, 2 Aug 2010 10:28:14 +0000 Subject: [PATCH] =?UTF-8?q?#19045610:=20default=EC=97=90=20=EC=A3=BC?= =?UTF-8?q?=EC=96=B4=EC=A7=80=EB=8A=94=20=EB=B3=80=EC=88=98=20=EB=82=B4?= =?UTF-8?q?=EC=9A=A9=EC=9D=B4=20=EC=88=AB=EC=9E=90=EC=9D=B8=20=EA=B2=BD?= =?UTF-8?q?=EC=9A=B0=EB=9D=BC=EB=8F=84=20=EC=BB=AC=EB=9F=BC=20=ED=83=80?= =?UTF-8?q?=EC=9E=85=EC=9D=B4=20char=20=EB=98=90=EB=8A=94=20varchar?= =?UTF-8?q?=EC=9D=B8=20=EA=B2=BD=EC=9A=B0=20ALTER=EC=8B=9C=20=EC=9E=91?= =?UTF-8?q?=EC=9D=80=20=EB=94=B0=EC=9D=8C=ED=91=9C=EB=A1=9C=20=EC=8B=B8?= =?UTF-8?q?=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95.(=EB=B3=B4=EA=B3=A0?= =?UTF-8?q?=EB=90=9C=20=EC=9D=B4=EC=8A=88=EC=99=80=20=EC=A7=81=EC=A0=91?= =?UTF-8?q?=EC=A0=81=20=EA=B4=80=EB=A0=A8=EC=9D=80=20=EC=97=86=EC=9C=BC?= =?UTF-8?q?=EB=82=98=20=EB=B3=B8=20=EC=9D=B4=EC=8A=88=20=EA=B2=80=ED=86=A0?= =?UTF-8?q?=EC=A4=91=20=EB=B2=84=EA=B7=B8=20=EB=B0=9C=EA=B2=AC=ED=95=98?= =?UTF-8?q?=EC=97=AC=20=EC=88=98=EC=A0=95.)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7621 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- classes/db/DBCubrid.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/classes/db/DBCubrid.class.php b/classes/db/DBCubrid.class.php index 3437225ff..d11d36d87 100644 --- a/classes/db/DBCubrid.class.php +++ b/classes/db/DBCubrid.class.php @@ -336,7 +336,6 @@ // 만약 테이블 이름이 sequence라면 serial 생성 if($table_name == 'sequence') { - $query = sprintf('create serial "%s" start with 1 increment by 1 minvalue 1 maxvalue 10000000000000000000000000000000000000 nocycle;', $this->prefix.$table_name); return $this->_query($query); } @@ -375,7 +374,7 @@ break; } - if($default && (!is_numeric($default) || $default[0] == "+")) $default = "'".$default."'"; + if($default && ($type != 'varchar' || $type != 'char')) $default = "'".$default."'"; $column_schema[] = sprintf('"%s" %s%s %s %s', $name,