Index: sql/connection.h |
diff --git a/sql/connection.h b/sql/connection.h |
index 5bbdb972d63ffcc6a0d3e74615b4e2d6b6474761..2f6c71ffccf1a2cc1489b2fbb3be97e0db45f1be 100644 |
--- a/sql/connection.h |
+++ b/sql/connection.h |
@@ -361,10 +361,10 @@ class SQL_EXPORT Connection { |
// Info querying ------------------------------------------------------------- |
- // Returns true if the given table exists. |
+ // Returns true if the given table (or index) exists. Instead of |
+ // test-then-create, callers should almost always prefer "CREATE TABLE IF NOT |
+ // EXISTS" or "CREATE INDEX IF NOT EXISTS". |
bool DoesTableExist(const char* table_name) const; |
- |
- // Returns true if the given index exists. |
bool DoesIndexExist(const char* index_name) const; |
// Returns true if a column with the given name exists in the given table. |