@@ -116,9 +116,9 @@ and close the prepared statement upon exit.
116116"""
117117function execute end
118118
119- execute (conn:: Connection , sql:: AbstractString , params:: StatementParams ) = execute (prepare (conn, sql), params)
119+ execute (conn:: Connection , sql:: AbstractString , params) = execute (prepare (conn, sql), params)
120120
121- function execute (f:: Base.Callable , conn:: Connection , sql:: AbstractString , params:: StatementParams )
121+ function execute (f:: Base.Callable , conn:: Connection , sql:: AbstractString , params)
122122 stmt = prepare (conn, sql)
123123 try
124124 cursor = execute (stmt, params)
@@ -153,7 +153,7 @@ of a single scalar value per parameter, an indexable collection should be passed
153153parameters will be looped over and `DBInterface.execute` will be called for each. Note that no result sets or cursors are returned
154154for any execution, so the usage is mainly intended for bulk INSERT statements.
155155"""
156- function executemany (stmt:: Statement , params:: StatementParams )
156+ function executemany (stmt:: Statement , params)
157157 if ! isempty (params)
158158 param = params[1 ]
159159 len = length (param)
@@ -169,7 +169,7 @@ function executemany(stmt::Statement, params::StatementParams)
169169end
170170
171171# keyarg version
172- executemany (conn:: Connection , sql:: AbstractString , params:: StatementParams ) = executemany (prepare (conn, sql), params)
172+ executemany (conn:: Connection , sql:: AbstractString , params) = executemany (prepare (conn, sql), params)
173173executemany (conn:: Connection , sql:: AbstractString ; kwargs... ) = executemany (conn, sql, kwargs. data)
174174
175175"""
@@ -182,8 +182,8 @@ This function defines a generic fallback that just returns `(DBInterface.execute
182182"""
183183function executemultiple end
184184
185- executemultiple (stmt:: Statement , params:: StatementParams ) = (execute (stmt, params),)
186- executemultiple (conn:: Connection , sql:: AbstractString , params:: StatementParams ) = executemultiple (prepare (conn, sql), params)
185+ executemultiple (stmt:: Statement , params) = (execute (stmt, params),)
186+ executemultiple (conn:: Connection , sql:: AbstractString , params) = executemultiple (prepare (conn, sql), params)
187187
188188# keyarg version
189189executemultiple (stmt:: Statement ; kwargs... ) = executemultiple (stmt, kwargs. data)
0 commit comments