Skip to content

Commit

Permalink
Merge pull request #567 from larskanis/more-spelling
Browse files Browse the repository at this point in the history
More spelling improvements
  • Loading branch information
larskanis authored Apr 27, 2024
2 parents 897042a + 785fbb4 commit 2918291
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ext/pg.c
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ Init_pg_ext(void)
/* Result#result_error_field argument constant
*
* The SQLSTATE code for the error.
* The SQLSTATE code identities the type of error that has occurred; it can be used by front-end applications to perform specific operations (such as error handling) in response to a particular database error.
* The SQLSTATE code identifies the type of error that has occurred; it can be used by front-end applications to perform specific operations (such as error handling) in response to a particular database error.
* For a list of the possible SQLSTATE codes, see Appendix A.
* This field is not localizable, and is always present.
*/
Expand Down
9 changes: 8 additions & 1 deletion lib/pg/basic_type_registry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,14 @@ module Checker
include Checker

def initialize
# The key of these hashes maps to the `typname` column from the table pg_type.
# @coders_by_name has a content of
# Array< Hash< Symbol: Hash< String: Coder > > >
#
# The layers are:
# * index of Array is 0 (text) and 1 (binary)
# * Symbol key in the middle Hash is :encoder and :decoder
# * String key in the inner Hash corresponds to the `typname` column in the table pg_type
# * Coder value in the inner Hash is the associated coder object
@coders_by_name = []
end

Expand Down

0 comments on commit 2918291

Please sign in to comment.