diff --git a/postgres/parser/hlc/timestamp.go b/postgres/parser/hlc/timestamp.go index 5665bd2e85..7e2513f072 100644 --- a/postgres/parser/hlc/timestamp.go +++ b/postgres/parser/hlc/timestamp.go @@ -168,7 +168,7 @@ func (t LegacyTimestamp) String() string { return Timestamp(t).String() } -// IsEmpty retruns true if t is an empty Timestamp. +// IsEmpty returns true if t is an empty Timestamp. func (t Timestamp) IsEmpty() bool { return t == Timestamp{} } diff --git a/postgres/parser/parser/README.md b/postgres/parser/parser/README.md index 2bb8116897..69d8e0cb10 100644 --- a/postgres/parser/parser/README.md +++ b/postgres/parser/parser/README.md @@ -227,10 +227,10 @@ yacc to shift. The particular mechanism is to tell yacc that one rule has a *higher priority* than another. It just so happens however that the yacc language only allows us to -set relative priorites of *tokens*, not rules. And here we have a +set relative priorities of *tokens*, not rules. And here we have a problem, of the two rules that need to be prioritized, only one has a token to work with (the one with HELPTOKEN). Which token should we -prioritze for the other? +prioritize for the other? Conveniently yacc knows about this trouble and offers us an awkward, but working solution: we can tell it "use for this rule the same diff --git a/server/analyzer/init.go b/server/analyzer/init.go index cfc9fcdc5b..bfd05dbed6 100644 --- a/server/analyzer/init.go +++ b/server/analyzer/init.go @@ -99,7 +99,7 @@ func Init() { func initEngine() { // This technically takes place at execution time rather than as part of analysis, but we don't have a better // place to put it. Our foreign key validation logic is different from MySQL's, and since it's not an analyzer rule - // we can't swap out a rule like the rest of the logic in this packge, we have to do a function swap. + // we can't swap out a rule like the rest of the logic in this package, we have to do a function swap. plan.ValidateForeignKeyDefinition = validateForeignKeyDefinition } diff --git a/testing/go/functions_test.go b/testing/go/functions_test.go index ef0ba4bcea..b84fa9dfc9 100644 --- a/testing/go/functions_test.go +++ b/testing/go/functions_test.go @@ -908,7 +908,7 @@ func TestSystemInformationFunctions(t *testing.T) { `create sequence t2_id_seq START 1 INCREMENT 3;`, `create table t2 (id INTEGER NOT NULL DEFAULT nextval('t2_id_seq'));`, // TODO: ALTER SEQUENCE OWNED BY is not supported yet. When the sequence is created - // explicitly, separate from the column, the owner must be udpated before + // explicitly, separate from the column, the owner must be updated before // pg_get_serial_sequence() will identify it. // `ALTER SEQUENCE t2_id_seq OWNED BY t2.id;`, },