我试图在创建表后检查表是否存在但不"SELECT name FROM sqlite_master WHERE type='table' AND name='testtable';"返回任何内容 ( EOF)。我做错了什么?
Sqlite3 包取自http://code.google.com/p/go-sqlite/source/browse/#hg%2Fgo1%2Fsqlite3 Go version: 1.2.1
得到了:
hello, world
FileExists(dbname) returned: false
database ok
creating testtable...
success!
inserting something...
checking testtable...
Failed to scan variable, error: EOF
预期的:
hello, world
FileExists(dbname) returned: false
database ok
creating testtable...
success!
inserting something...
checking testtable...
Table detected
森栏
相关分类