mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
使用exp表达式更新数据的异常提示
This commit is contained in:
@@ -48,6 +48,7 @@ return [
|
|||||||
'KVDB init error' => '没有初始化KVDB,请在SAE管理平台初始化KVDB服务',
|
'KVDB init error' => '没有初始化KVDB,请在SAE管理平台初始化KVDB服务',
|
||||||
'fields not exists' => '数据表字段不存在',
|
'fields not exists' => '数据表字段不存在',
|
||||||
'where express error' => '查询表达式错误',
|
'where express error' => '查询表达式错误',
|
||||||
|
'not support data' => '不支持的数据表达式',
|
||||||
'no data to update' => '没有任何数据需要更新',
|
'no data to update' => '没有任何数据需要更新',
|
||||||
'miss data to insert' => '缺少需要写入的数据',
|
'miss data to insert' => '缺少需要写入的数据',
|
||||||
'miss complex primary data' => '缺少复合主键数据',
|
'miss complex primary data' => '缺少复合主键数据',
|
||||||
|
|||||||
@@ -120,6 +120,8 @@ abstract class Builder
|
|||||||
case 'dec':
|
case 'dec':
|
||||||
$result[$item] = $item . '-' . floatval($val[1]);
|
$result[$item] = $item . '-' . floatval($val[1]);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
throw new Exception('not support data :[' . $val[0] . ']');
|
||||||
}
|
}
|
||||||
} elseif (is_scalar($val)) {
|
} elseif (is_scalar($val)) {
|
||||||
// 过滤非标量数据
|
// 过滤非标量数据
|
||||||
|
|||||||
Reference in New Issue
Block a user