better checks for json support
[m6w6/ext-pq] / src / php_pqtxn.c
index fcf7a4bad5f6ee2f46b34687b20f366dd0a4024d..5fc1e9d5afcf7ebdbff9c6f213db3fa962bbee54 100644 (file)
@@ -355,7 +355,7 @@ static PHP_METHOD(pqtxn, commit) {
                if (!obj->intern) {
                        throw_exce(EX_UNINITIALIZED TSRMLS_CC, "pq\\Transacation not initialized");
                } else if (!obj->intern->open) {
-                       throw_exce(EX_RUNTIME TSRMLS_CC, "pq\\Transacation already closed");
+                       throw_exce(EX_RUNTIME TSRMLS_CC, "pq\\Transaction already closed");
                } else {
                        PGresult *res;
                        smart_str cmd = {0};