Skip to content

Commit f40e413

Browse files
author
James William Pye
committed
Note when do() is actually usable.
1 parent 8747ac1 commit f40e413

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

postgresql/documentation/driver.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,9 @@ The methods and properties on the connection object are ready for use:
335335
``db.do(source[, language = None])``
336336
Execute a DO statement on the server. If `language` is `None`, none will be
337337
specified and the `default_do_language` database setting will be used by
338-
PostgreSQL.
338+
PostgreSQL. *DO statements are available on PostgreSQL 8.5 and greater.*
339+
*Executing this method on servers that do not support DO statements will*
340+
*likely cause a SyntaxError*.
339341

340342
``db.execute(sql_statements_string)``
341343
Run a block of SQL on the server. This method returns `None` unless an error

0 commit comments

Comments
 (0)