From b4ccc0c57a6ae282ddf906f71122560c83f65a23 Mon Sep 17 00:00:00 2001 From: ngleader Date: Fri, 15 Oct 2010 07:06:44 +0000 Subject: [PATCH] =?UTF-8?q?#19199062=20null=20=EA=B0=92=20insert=20?= =?UTF-8?q?=EC=8B=9C=20=EC=9C=A0=EC=97=B0=ED=95=98=EA=B2=8C=20=EC=82=AC?= =?UTF-8?q?=EC=9A=A9=ED=95=98=EB=8F=84=EB=A1=9D=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@7760 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- classes/db/DBMysql.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/classes/db/DBMysql.class.php b/classes/db/DBMysql.class.php index eb04ac009..8ee79cd2c 100644 --- a/classes/db/DBMysql.class.php +++ b/classes/db/DBMysql.class.php @@ -440,14 +440,14 @@ if($output->column_type[$name]!='number') { - $value = $this->addQuotes($value); - if($value){ - $value = "'".$value."'"; + if(!is_null($value)){ + $value = "'" . $this->addQuotes($value) ."'"; }else{ if($val['notnull']=='notnull') { $value = "''"; } else { - $value = 'null'; + //$value = 'null'; + $value = "''"; } }