Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix PostgreSQL support #1610
Without this commit, SMW with pgsql results in:
Notice: pg_send_query(): There are results on this connection. Call pg_get_result() until it returns FALSE in ./includes/db/DatabasePostgres.php on line 490
RuntimeException from line 181 of ./extensions/SemanticMediaWiki/src/MediaWiki/Database.php: Unable to post new query to PostgreSQL
Also using anonymous DO block does not pollute pg_temp with stored procedures and is shorter.