git://git.iain.cx/iain
/
pstop.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
v0.1.3 add support for explicit --defaults-file=xx on command line
[pstop.git]
/
lib
/
check_table_access.go
diff --git
a/lib/check_table_access.go
b/lib/check_table_access.go
index
3e4e8c3
..
6cd3b83
100644
(file)
--- a/
lib/check_table_access.go
+++ b/
lib/check_table_access.go
@@
-5,7
+5,7
@@
import (
"log"
)
"log"
)
-//
check that select to a table exist
s. Return an error if we get a failure.
+//
Check that select to a table work
s. Return an error if we get a failure.
func CheckTableAccess(dbh *sql.DB, table_name string) error {
sql_select := "SELECT 1 FROM " + table_name + " LIMIT 1"
func CheckTableAccess(dbh *sql.DB, table_name string) error {
sql_select := "SELECT 1 FROM " + table_name + " LIMIT 1"