Skip to content

Commit aa4f395

Browse files
author
Alexander Beedie
committed
Fix a few minor typos
1 parent 922cc64 commit aa4f395

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/ast/data_type.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ pub enum DataType {
168168
UnsignedInt(Option<u64>),
169169
/// Unsigned int4 with optional display width e.g. INT4 UNSIGNED or INT4(11) UNSIGNED
170170
UnsignedInt4(Option<u64>),
171-
/// Unsigned integer with optional display width e.g. INTGER UNSIGNED or INTEGER(11) UNSIGNED
171+
/// Unsigned integer with optional display width e.g. INTEGER UNSIGNED or INTEGER(11) UNSIGNED
172172
UnsignedInteger(Option<u64>),
173173
/// Unsigned integer type in [clickhouse]
174174
/// Note: UInt8 mean 8 bits in [clickhouse]
@@ -699,7 +699,7 @@ pub enum CharacterLength {
699699
/// Optional unit. If not informed, the ANSI handles it as CHARACTERS implicitly
700700
unit: Option<CharLengthUnits>,
701701
},
702-
/// VARCHAR(MAX) or NVARCHAR(MAX), used in T-SQL (Miscrosoft SQL Server)
702+
/// VARCHAR(MAX) or NVARCHAR(MAX), used in T-SQL (Microsoft SQL Server)
703703
Max,
704704
}
705705

src/ast/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2265,7 +2265,7 @@ pub enum Statement {
22652265
/// SET [ SESSION | LOCAL ] ROLE role_name
22662266
/// ```
22672267
///
2268-
/// Sets sesssion state. Examples: [ANSI][1], [Postgresql][2], [MySQL][3], and [Oracle][4]
2268+
/// Sets session state. Examples: [ANSI][1], [Postgresql][2], [MySQL][3], and [Oracle][4]
22692269
///
22702270
/// [1]: https://jakewheat.github.io/sql-overview/sql-2016-foundation-grammar.html#set-role-statement
22712271
/// [2]: https://www.postgresql.org/docs/14/sql-set-role.html
@@ -2283,7 +2283,7 @@ pub enum Statement {
22832283
/// ```
22842284
///
22852285
/// Note: this is not a standard SQL statement, but it is supported by at
2286-
/// least MySQL and PostgreSQL. Not all MySQL-specific syntatic forms are
2286+
/// least MySQL and PostgreSQL. Not all MySQL-specific syntactic forms are
22872287
/// supported yet.
22882288
SetVariable {
22892289
local: bool,

src/parser/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8538,10 +8538,10 @@ impl<'a> Parser<'a> {
85388538
})
85398539
} else if variable.to_string() == "TRANSACTION" && modifier.is_none() {
85408540
if self.parse_keyword(Keyword::SNAPSHOT) {
8541-
let snaphot_id = self.parse_value()?;
8541+
let snapshot_id = self.parse_value()?;
85428542
return Ok(Statement::SetTransaction {
85438543
modes: vec![],
8544-
snapshot: Some(snaphot_id),
8544+
snapshot: Some(snapshot_id),
85458545
session: false,
85468546
});
85478547
}

src/tokenizer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ impl<'a> Tokenizer<'a> {
654654
Ok(())
655655
}
656656

657-
// Tokenize the identifer or keywords in `ch`
657+
// Tokenize the identifier or keywords in `ch`
658658
fn tokenize_identifier_or_keyword(
659659
&self,
660660
ch: impl IntoIterator<Item = char>,

0 commit comments

Comments
 (0)