Merge "API: Use message-per-value for apihelp-query+allusers-param-prop"
[lhc/web/wiklou.git] / includes / db / DatabaseMysqlBase.php
index 846da1c..be34242 100644 (file)
@@ -1055,6 +1055,10 @@ abstract class DatabaseMysqlBase extends DatabaseBase {
                        ( $this->lastErrno() == 1290 && strpos( $this->lastError(), '--read-only' ) !== false );
        }
 
+       function wasConnectionError( $errno ) {
+               return $errno == 2013 || $errno == 2006;
+       }
+
        /**
         * Get the underlying binding handle, mConn
         *