Pike 9.2/OSX Future doesn't throw with bad ALTER TABLE

Mike Kilmer <[email protected]> Thu, 30 May 2024 11:59:13 -0500
Newsgroups gmane.comp.lang.pike.user
Message-ID <[email protected]>
It stalls in the rollback.

The ALTER TABLE seems to both succeed and fail according to the SP_DEBUG =
output.

After that the ROLLBACK promise never resolves.

Minimal example:

__async__ void main() {
	object conn =3D Sql.Sql("pgsql://mikekilmer:@localhost/thedb");
	werror("start\n");
	await(conn->promise_query("begin"))->get();
	catch (await(conn->promise_query("ALTER TABLE nonexistenttable =
ADD id INT"))->get());
	await(conn->promise_query("rollback"))->get();
	werror("done\n");
}

(Same results on LINUX)

And hi and thank you.

Mike=