Implement INSERT and UPDATE queries using new parser

This commit is contained in:
Kijin Sung 2020-06-27 00:49:04 +09:00
parent 03279788da
commit 7f8312ee1a
3 changed files with 67 additions and 5 deletions

View file

@ -113,7 +113,7 @@ class DBQueryParser
{
$column = new DBQuery\ColumnWrite;
$column->name = trim($tag['name']);
$column->name = trim($tag['operation']) ?: 'equal';
$column->operation = trim($tag['operation']) ?: 'equal';
$column->var = trim($tag['var']) ?: null;
$column->default = trim($tag['default']) ?: null;
$column->not_null = trim($tag['notnull'] ?: $tag['not-null']) !== '' ? true : false;