@@ -341,7 +341,11 @@ def read_sql_query(sql, con, index_col=None, coerce_float=True, params=None,
341
341
Attempt to convert values to non-string, non-numeric objects (like
342
342
decimal.Decimal) to floating point, useful for SQL result sets
343
343
params : list, tuple or dict, optional
344
- List of parameters to pass to execute method.
344
+ List of parameters to pass to execute method. The syntax used
345
+ to pass parameters is database driver dependent. Check your
346
+ database driver documentation for which of the five syntax styles,
347
+ described in PEP 249's paramstyle, is supported.
348
+ Eg. for psycopg2, uses %(name)s so use params={'name' : 'value'}
345
349
parse_dates : list or dict
346
350
- List of column names to parse as dates
347
351
- Dict of ``{column_name: format string}`` where format string is
@@ -387,7 +391,11 @@ def read_sql(sql, con, index_col=None, coerce_float=True, params=None,
387
391
Attempt to convert values to non-string, non-numeric objects (like
388
392
decimal.Decimal) to floating point, useful for SQL result sets
389
393
params : list, tuple or dict, optional
390
- List of parameters to pass to execute method.
394
+ List of parameters to pass to execute method. The syntax used
395
+ to pass parameters is database driver dependent. Check your
396
+ database driver documentation for which of the five syntax styles,
397
+ described in PEP 249's paramstyle, is supported.
398
+ Eg. for psycopg2, uses %(name)s so use params={'name' : 'value'}
391
399
parse_dates : list or dict
392
400
- List of column names to parse as dates
393
401
- Dict of ``{column_name: format string}`` where format string is
0 commit comments