From d4f989b02e068a5ba3feb01c830d0e167dd5f3a2 Mon Sep 17 00:00:00 2001 From: fasiondog Date: Wed, 9 Oct 2024 03:58:05 +0800 Subject: [PATCH] fixed TABLE_NO_AUTOID_BIND6 --- hikyuu/utilities/db_connect/TableMacro.h | 5 +++-- release.md | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/hikyuu/utilities/db_connect/TableMacro.h b/hikyuu/utilities/db_connect/TableMacro.h index b8a4e3e..67b57ca 100644 --- a/hikyuu/utilities/db_connect/TableMacro.h +++ b/hikyuu/utilities/db_connect/TableMacro.h @@ -1966,7 +1966,7 @@ public: st->bind(0, f1, f2, f3, f4, f5, f6, m_rowid); \ } \ void load(const SQLStatementPtr& st) { \ - st->getColumn(0, m_rowid, f1, f2, f3, f4, f5, f6); \ + st->getColumn(0, f1, f2, f3, f4, f5, f6); \ } #define TABLE_NO_AUTOID_BIND7(ROWID, table, f1, f2, f3, f4, f5, f6, f7) \ @@ -2168,7 +2168,8 @@ public: } #define TABLE_NO_AUTOID_BIND12(ROWID, table, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12) \ - pprivate : uint64_t m_rowid = 0; \ + pprivate: \ + uint64_t m_rowid = 0; \ \ public: \ bool valid() const { \ diff --git a/release.md b/release.md index 5d30757..2a0b76d 100644 --- a/release.md +++ b/release.md @@ -1,5 +1,9 @@ # 版本发布说明 +## 1.0.9 - + +fixed TABLE_NO_AUTOID_BIND6 + ## 1.0.8 - 2024年10月6日 优化 TransAction,中间处理异常时,自动全部回滚