Skip to content

Commit

Permalink
Give more explicit example for Database#literal (Fixes #2119)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyevans committed Jan 14, 2024
1 parent 433b937 commit 150e754
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sequel/database/misc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,8 @@ def inspect
# Proxy the literal call to the dataset.
#
# DB.literal(1) # 1
# DB.literal(:a) # a
# DB.literal('a') # 'a'
# DB.literal(:a) # "a" # or `a`, [a], or a, depending on identifier quoting
# DB.literal("a") # 'a'
def literal(v)
schema_utility_dataset.literal(v)
end
Expand Down

0 comments on commit 150e754

Please sign in to comment.