mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-05 17:44:55 -06:00
SqlCtrl: Update of key column option
git-svn-id: svn://ultimatepp.org/upp/trunk@7989 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
7184bd5c00
commit
16a7aba1f7
2 changed files with 4 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ bool SqlArray::UpdateRow() {
|
|||
else {
|
||||
SqlUpdate update(table);
|
||||
for(int i = 0; i < GetIndexCount(); i++)
|
||||
if(!GetId(i).IsNull() && IsModified(i) && (i || lateinsert))
|
||||
if(!GetId(i).IsNull() && IsModified(i) && (i || lateinsert || updatekey))
|
||||
update(GetId(i), Get(i));
|
||||
if(update) {
|
||||
Session().ClearError();
|
||||
|
|
@ -235,6 +235,7 @@ SqlArray::SqlArray() {
|
|||
offset = 0;
|
||||
count = Null;
|
||||
WhenFilter = true;
|
||||
updatekey = false;
|
||||
}
|
||||
|
||||
END_UPP_NAMESPACE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue