2014年4月4日

Caught exception: TypeError: Cannot call method 'insert' of undefined

摘要: mac 10.9.1, pomelo 0.8.9使用 pomelo.app.get('dbclient').insert(sql, args, function(err, res) {...});出现Caught exception: TypeError: Cannot call method 'insert' of undefined可以确定的是,在前面的代码中已经使用过该方法如果换成var dbclient = pomelo.app.get('dbclient');dbclient.insert(sql, args, function(err 阅读全文

posted @ 2014-04-04 18:04 影语者 阅读(696) 评论(0) 推荐(0) 编辑

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual...

摘要: mysql 下输入select * from Character;提示错误ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Character' at line 1如果换成 select * from `Character`; 又正常了,可以确认的是table name中没有空格其他table,比如Player,不用加`` 阅读全文

posted @ 2014-04-04 14:43 影语者 阅读(22381) 评论(0) 推荐(0) 编辑

导航