Skip to content

Commit 126c1cb

Browse files
authored
parser: add more nodes for transactions, partitions, materialized (#558)
1 parent 175344b commit 126c1cb

File tree

14 files changed

+1306
-697
lines changed

14 files changed

+1306
-697
lines changed

crates/squawk_linter/src/rules/prefer_timestamptz.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ pub fn is_not_allowed_timestamp(ty: &ast::Type) -> bool {
3232
ast::Type::BitType(_) => false,
3333
ast::Type::DoubleType(_) => false,
3434
ast::Type::TimeType(time_type) => {
35-
if time_type.timestamp_token().is_some() && time_type.with_timezone().is_none() {
35+
if time_type.timestamp_token().is_some()
36+
&& !matches!(time_type.timezone(), Some(ast::Timezone::WithTimezone(_)))
37+
{
3638
return true;
3739
}
3840
false

crates/squawk_parser/src/generated/syntax_kind.rs

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

0 commit comments

Comments
 (0)