增加空值判断

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 "bigint":
case "real": case "real":
case "double precision": 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 "date":
case "timestamp without time zone": case "timestamp without time zone":
case "char": case "char":
case "character varying": case "character varying":
case "text": case "text":
return is_string($data) || is_null($data); return is_string($data) || is_null($data) || $data=='';
default: default:
return FALSE; return FALSE;