Skip to content

Commit cc3faba

Browse files
committed
fix #1055
1 parent 81d2dd4 commit cc3faba

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

Cargo.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "sqlpage"
3-
version = "0.38.0"
3+
version = "0.38.1"
44
edition = "2021"
55
description = "Build data user interfaces entirely in SQL. A web server that takes .sql files and formats the query result using pre-made configurable professional-looking components."
66
keywords = ["web", "sql", "framework"]

src/webserver/database/sql.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,13 @@ impl VisitorMut for ParameterExtractor {
923923
Expr::Cast {
924924
kind: kind @ CastKind::DoubleColon,
925925
..
926-
} if self.db_info.database_type != SupportedDatabase::Postgres => {
926+
} if ![
927+
SupportedDatabase::Postgres,
928+
SupportedDatabase::Snowflake,
929+
SupportedDatabase::Generic,
930+
]
931+
.contains(&self.db_info.database_type) =>
932+
{
927933
log::warn!("Casting with '::' is not supported on your database. \
928934
For backwards compatibility with older SQLPage versions, we will transform it to CAST(... AS ...).");
929935
*kind = CastKind::Cast;

0 commit comments

Comments
 (0)