增加空值判断

This commit is contained in:
wlx 2015-02-05 03:30:26 +00:00
parent 39f5828089
commit 93037ea566
1 changed files with 2 additions and 2 deletions

View File

@ -24,13 +24,13 @@ abstract class AbstractProcessing {
case "bigint":
case "real":
case "double precision":
return is_int($data) || is_float($data) || is_null($data);
return is_int($data) || is_float($data) || is_null($data) || $data=='';
case "date":
case "timestamp without time zone":
case "char":
case "character varying":
case "text":
return is_string($data) || is_null($data);
return is_string($data) || is_null($data) || $data=='';
default:
return FALSE;