Skip to content

Commit f56b1f6

Browse files
committed
Fixed an incorrect warning
fixed logs when using sqlpage functions with json arguments in sqlite: `WARN sqlpage::webserver::database::execute_queries] The column _sqlpage_f0_a1 is missing from the result set, so it cannot be converted to JSON.`.
1 parent 64546c4 commit f56b1f6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
## unreleased
44
- [update apexcharts.js to v4.0.0](https://github.com/apexcharts/apexcharts.js/releases)
5-
- Fix a bug where the chart library would be loaded multiple times when the page contained multiple charts. This made the page load slower and could cause issues with the chart library.
6-
- Fix a bug where [timeline chart tooltips displayed the wrong labels](https://github.com/sqlpage/SQLPage/issues/659).
5+
- Fixed a bug where the chart library would be loaded multiple times when the page contained multiple charts. This made the page load slower and could cause issues with the chart library.
6+
- Fixed a bug where [timeline chart tooltips displayed the wrong labels](https://github.com/sqlpage/SQLPage/issues/659).
7+
- Fixed an incorrect warning polluting logs when using sqlpage functions with json arguments in sqlite: `WARN sqlpage::webserver::database::execute_queries] The column _sqlpage_f0_a1 is missing from the result set, so it cannot be converted to JSON.`.
78

89
## 0.30.1 (2024-10-31)
910
- fix a bug where table sorting would break if table search was not also enabled.

src/webserver/database/execute_queries.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ pub fn stream_query_results_with_conn<'a>(
5959
while let Some(elem) = stream.next().await {
6060
let is_err = elem.is_err();
6161
let mut query_result = parse_single_sql_result(&stmt.query, elem);
62-
apply_delayed_functions(request, &stmt.delayed_functions, &mut query_result).await?;
6362
apply_json_columns(&mut query_result, &stmt.json_columns);
63+
apply_delayed_functions(request, &stmt.delayed_functions, &mut query_result).await?;
6464
for i in parse_dynamic_rows(query_result) {
6565
yield i;
6666
}

0 commit comments

Comments
 (0)