ソースを参照

* fixed bug: exception when dataset is updated, but no was value changed

master
bergmann 7年前
コミット
3f7ad004b2
1個のファイルの変更2行の追加2行の削除
  1. +2
    -2
      src/cpphibernate/driver/mariadb/schema/table.cpp

+ 2
- 2
src/cpphibernate/driver/mariadb/schema/table.cpp ファイルの表示

@@ -1357,8 +1357,8 @@ std::string table_t::execute_create_update(
else
{
auto count = connection.execute_rows(*statement);
if (count != 1)
throw misc::hibernate_exception("Expected exaclty one row to be inserted/updated!");
if (count > 1)
throw misc::hibernate_exception("Expected one/ row to be inserted/updated!");
cpphibernate_debug_log(count << " rows inserted/updated");
}
primary_key_field->set(context, primary_key);


読み込み中…
キャンセル
保存