使用exp表达式更新数据的异常提示

This commit is contained in:
thinkphp
2018-05-03 17:19:53 +08:00
parent d8b38366fb
commit a5afa55ce6
2 changed files with 3 additions and 0 deletions

View File

@@ -48,6 +48,7 @@ return [
'KVDB init error' => '没有初始化KVDB请在SAE管理平台初始化KVDB服务',
'fields not exists' => '数据表字段不存在',
'where express error' => '查询表达式错误',
'not support data' => '不支持的数据表达式',
'no data to update' => '没有任何数据需要更新',
'miss data to insert' => '缺少需要写入的数据',
'miss complex primary data' => '缺少复合主键数据',

View File

@@ -120,6 +120,8 @@ abstract class Builder
case 'dec':
$result[$item] = $item . '-' . floatval($val[1]);
break;
default:
throw new Exception('not support data :[' . $val[0] . ']');
}
} elseif (is_scalar($val)) {
// 过滤非标量数据