增加null值判断

This commit is contained in:
wlx 2015-02-05 03:28:35 +00:00
parent c907ee0972
commit 39f5828089
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);
return is_int($data) || is_float($data) || is_null($data);
case "date":
case "timestamp without time zone":
case "char":
case "character varying":
case "text":
return is_string($data);
return is_string($data) || is_null($data);
default:
return FALSE;