Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
fasiondog committed Aug 12, 2024
1 parent f7c5aae commit aad7ab3
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/macos_x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:

- name: config
run: |
xmake f -c -k ${{ matrix.kind }} -y -vD --mo=y --http_client_zip=y --http_client_ssl=y
xmake f -c -k ${{ matrix.kind }} -y -vD --mo=y --mysql=y --http_client_zip=y --http_client_ssl=y
- name: build
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:

- name: config
run: |
xmake f -c -k ${{ matrix.kind }} -y -vD --mo=y --http_client_zip=y --http_client_ssl=y
xmake f -c -k ${{ matrix.kind }} -y -vD --mo=y --mysql=y --http_client_zip=y --http_client_ssl=y
- name: build
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu_aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
kind: [static, shared]

concurrency:
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-Cross-Musl-${{ matrix.cross }}
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-Cross-Musl-${{ matrix.cross }}-${{ matrix.kind }}
cancel-in-progress: true

steps:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
kind: [static, shared]

concurrency:
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-Windows-${{ matrix.os }}-${{ matrix.arch }}
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-Windows-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.kind }}
cancel-in-progress: true

steps:
Expand All @@ -46,14 +46,14 @@ jobs:
- name: configure
shell: cmd
run: |
xmake f -c -a ${{ matrix.arch }} -k ${{ matrix.kind }} -y -vD --mo=y --http_client_zip=y --http_client_ssl=y
xmake f -c -a ${{ matrix.arch }} -k ${{ matrix.kind }} -y -vD --mo=y --mysql=y --http_client_zip=y --http_client_ssl=y
- name: build
shell: cmd
run: |
xmake -b unit-test
- name: test
run: |
xmake r unit-test
# - name: test
# run: |
# xmake r unit-test

4 changes: 2 additions & 2 deletions hikyuu/utilities/db_connect/DBUpgrade.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ void HKU_UTILS_API DBUpgrade(const DBConnectPtr &driver, const char *module_name
if (!driver->tableExist("module_version")) {
bool need_create = true;
#if HKU_ENABLE_SQLITE
if (need_create && typeid((*driver)) == typeid(SQLiteConnect)) {
if (need_create && typeid(driver.get()) == typeid(SQLiteConnect *)) {
driver->exec(
"CREATE TABLE `module_version` (`id` INTEGER PRIMARY KEY AUTOINCREMENT,`module` "
"TEXT, "
Expand All @@ -40,7 +40,7 @@ void HKU_UTILS_API DBUpgrade(const DBConnectPtr &driver, const char *module_name
#endif

#if HKU_ENABLE_MYSQL
if (need_create && typeid((*driver)) == typeid(MySQLConnect)) {
if (need_create && typeid(driver.get()) == typeid(MySQLConnect *)) {
driver->exec(
R"(CREATE TABLE `module_version` (
`id` int NOT NULL AUTO_INCREMENT,
Expand Down

0 comments on commit aad7ab3

Please sign in to comment.