X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=lib%2Fcheck_table_access.go;h=6cd3b833bbdb45c7bba9a7513f621787ce6703a5;hb=HEAD;hp=3e4e8c3dcb8bd08c36371838c75022d8755cd7e8;hpb=8d2e60dcb97570307cd41bb07c73f7d13f182c44;p=pstop.git diff --git a/lib/check_table_access.go b/lib/check_table_access.go index 3e4e8c3..6cd3b83 100644 --- a/lib/check_table_access.go +++ b/lib/check_table_access.go @@ -5,7 +5,7 @@ import ( "log" ) -// check that select to a table exists. Return an error if we get a failure. +// Check that select to a table works. 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"