Skip to content
Open
6 changes: 3 additions & 3 deletions sqlspec/builder/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ def _parameterize_expression(self, expression: exp.Expr) -> exp.Expr:
A new expression with literals replaced by parameter placeholders

"""
return cast("exp.Expr", expression.transform(_ExpressionParameterizer(self), copy=False))
return expression.transform(_ExpressionParameterizer(self), copy=False)

def add_parameter(self: Self, value: Any, name: str | None = None) -> tuple[Self, str]:
"""Explicitly adds a parameter to the query.
Expand Down Expand Up @@ -554,7 +554,7 @@ def _update_placeholders_in_expression(self, expression: exp.Expr, param_mapping
Updated expression with new placeholder names

"""
return cast("exp.Expr", expression.transform(_PlaceholderReplacer(param_mapping), copy=False))
return expression.transform(_PlaceholderReplacer(param_mapping), copy=False)

def _generate_builder_cache_key(self, config: "StatementConfig | None" = None) -> str:
"""Generate cache key based on builder state and configuration.
Expand Down Expand Up @@ -936,7 +936,7 @@ def _is_oracle_dialect(self, dialect: "DialectType | str | None") -> bool:

def _unquote_identifiers_for_oracle(self, expression: exp.Expr) -> exp.Expr:
"""Remove identifier quoting to avoid Oracle case-sensitive lookup issues."""
return cast("exp.Expr", expression.copy().transform(_unquote_identifier, copy=False))
return expression.copy().transform(_unquote_identifier, copy=False)

def _strip_lock_identifier_quotes(self, sql_string: str) -> str:
for keyword in ("FOR UPDATE OF ", "FOR SHARE OF "):
Expand Down
130 changes: 0 additions & 130 deletions tests/integration/adapters/adbc/test_exceptions.py

This file was deleted.

153 changes: 0 additions & 153 deletions tests/integration/adapters/adbc/test_explain.py

This file was deleted.

61 changes: 0 additions & 61 deletions tests/integration/adapters/adbc/test_storage_bridge.py

This file was deleted.

Loading
Loading