aboutsummaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'pkg')
-rw-r--r--pkg/database/connection.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/database/connection.go b/pkg/database/connection.go
index 06514df..1163679 100644
--- a/pkg/database/connection.go
+++ b/pkg/database/connection.go
@@ -80,6 +80,6 @@ func Connect() {
// utility methods
func tableExists(tableName string) bool {
- _, err := DBCon.Exec("select * from " + tableName + ";")
+ _, err := DBCon.Exec("select * from " + tableName + " limit 1;")
return err == nil
}