From 907f1a3dee024ebf26e5a8fbfd6cd19437f7473f Mon Sep 17 00:00:00 2001 From: epriestley Date: Wed, 9 May 2012 10:01:53 -0700 Subject: [PATCH] Raise a "you should upgrade your storage" note for a missing database Summary: We raise an improved exception for missing tables/columns, but not databases. Test Plan: Hit a "no such database error", got a better error message pointing me at storage upgrades. Reviewers: btrahan, jungejason Reviewed By: btrahan CC: aran Differential Revision: https://secure.phabricator.com/D2429 --- .../connection/mysql/base/AphrontMySQLDatabaseConnectionBase.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/storage/connection/mysql/base/AphrontMySQLDatabaseConnectionBase.php b/src/storage/connection/mysql/base/AphrontMySQLDatabaseConnectionBase.php index 8b0c8d0ce1..6c41bcdf59 100644 --- a/src/storage/connection/mysql/base/AphrontMySQLDatabaseConnectionBase.php +++ b/src/storage/connection/mysql/base/AphrontMySQLDatabaseConnectionBase.php @@ -238,6 +238,7 @@ abstract class AphrontMySQLDatabaseConnectionBase case 1143: // Access denied to column throw new AphrontQueryAccessDeniedException($exmsg); case 1146: // No such table + case 1049: // No such database case 1054: // Unknown column "..." in field list throw new AphrontQuerySchemaException($exmsg); default: