return $this->lastErrno() == 5; // SQLITE_BUSY
}
- /**
- * @return bool
- */
- function wasErrorReissuable() {
- return $this->lastErrno() == 17; // SQLITE_SCHEMA;
- }
-
/**
* @return bool
*/
return $this->lastErrno() == 8; // SQLITE_READONLY;
}
+ public function wasConnectionError( $errno ) {
+ return $errno == 17; // SQLITE_SCHEMA;
+ }
+
+ protected function wasKnownStatementRollbackError() {
+ // ON CONFLICT ROLLBACK clauses make it so that SQLITE_CONSTRAINT error is
+ // ambiguous with regard to whether it implies a ROLLBACK or an ABORT happened.
+ // https://sqlite.org/lang_createtable.html#uniqueconst
+ // https://sqlite.org/lang_conflict.html
+ return false;
+ }
+
/**
* @return string Wikitext of a link to the server software's web site
*/