Skip to content

Commit b367878

Browse files
committed
remove unnecessary esc_str
1 parent beb634b commit b367878

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/SQLite.jl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,12 @@ function execute!(db::DB,sql::AbstractString)
187187
return execute!(stmt)
188188
end
189189

190-
"Escape SQLite identifiers (e.g. column, table or index names). Can be either a string, or a vector of strings (note does not check for null characters)."
190+
"Escape SQLite identifiers (e.g. column, table or index names). Can be either
191+
a string, or a vector of strings (note does not check for null characters).
192+
A vector of identifiers will be separated by commas."
191193
esc_id(x::AbstractString) = "\""*replace(x,"\"","\"\"")*"\""
192194
esc_id{S<:AbstractString}(X::AbstractVector{S}) = join(map(esc_id,X),',')
193195

194-
"Escape SQLite string constants (note does not check for null characters)."
195-
esc_str(x::AbstractString) = "'"*replace(x,"'","''")*"'"
196-
197196

198197
# Transaction-based commands
199198
"""

0 commit comments

Comments
 (0)