mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-29 22:03:40 -06:00
+Sql: new method SqlUpdate::Column(const SqlSet& cols, const SqlSet& vals) supports Oracle-style multicolumn SET in UPDATE (UPDATE xxx set (A, B, C) = select A, B, C from yyy)
+TSql: new variants Force[Schema]Update support incremental updates according to comparison of 'old' and 'new' row data git-svn-id: svn://ultimatepp.org/upp/trunk@2570 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
83d052093d
commit
6388462fa4
6 changed files with 60 additions and 1 deletions
|
|
@ -295,6 +295,11 @@ void SqlUpdate::Column(SqlId column, SqlVal val) {
|
|||
set.Cat(SqlVal(SqlVal(column), " = ", val, SqlS::COMP));
|
||||
}
|
||||
|
||||
void SqlUpdate::Column(const SqlSet& cols, const SqlSet& val)
|
||||
{
|
||||
set.Cat(SqlVal(SqlS(cols(), SqlS::HIGH), " = ", SqlS(val(), SqlS::HIGH), SqlS::COMP));
|
||||
}
|
||||
|
||||
// ------------------------------------
|
||||
// deprecated
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue