summaryrefslogtreecommitdiffstats
path: root/SQLiteStudio3/coreSQLiteStudio/dbattacher.h
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@ubuntu.com>2016-06-13 18:42:42 -0400
committerLibravatarUnit 193 <unit193@ubuntu.com>2016-06-13 18:42:42 -0400
commit5d9314f134ddd3dc4c853e398ac90ba247fb2e4f (patch)
tree5c457fc188036988d7abd29a3eb09931e406510f /SQLiteStudio3/coreSQLiteStudio/dbattacher.h
parent8e640722c62692818ab840d50b3758f89a41a54e (diff)
Imported Upstream version 3.1.0upstream/3.1.0
Diffstat (limited to 'SQLiteStudio3/coreSQLiteStudio/dbattacher.h')
-rw-r--r--SQLiteStudio3/coreSQLiteStudio/dbattacher.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/SQLiteStudio3/coreSQLiteStudio/dbattacher.h b/SQLiteStudio3/coreSQLiteStudio/dbattacher.h
index 5b94832..0e849a5 100644
--- a/SQLiteStudio3/coreSQLiteStudio/dbattacher.h
+++ b/SQLiteStudio3/coreSQLiteStudio/dbattacher.h
@@ -73,6 +73,17 @@ class API_EXPORT DbAttacher
* @return Query string.
*/
virtual QString getQuery() const = 0;
+
+ /**
+ * @brief Tells if "main" database name was used in the query and was ommited.
+ * @return true when "main" db token was in the query, or false otherwise.
+ *
+ * The "main" database will not be attached and this getter tells wheter such situation occured.
+ * This is to assert situation when user has database on the list which name is actually "main".
+ * Table window always uses "main." prefix when reading data and this caused attacher to step in,
+ * which then caused some execution error.
+ */
+ virtual bool getMainDbNameUsed() const = 0;
};
/**