modify error process in socket channel

This commit is contained in:
changfeng
2014-06-25 23:11:00 +08:00
parent 984f727385
commit c0e1365dc2
2 changed files with 6 additions and 3 deletions

View File

@@ -79,11 +79,11 @@ skynet.start(function()
-- bad sql statement
local ok, res = pcall( db.query, db, "select * from notexisttable" )
print( dump(res) )
print( "ok= ",ok, dump(res) )
res = db:query("select * from cats order by id asc")
print ( dump( res ) )
skynet.exit()
end)