Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于表结构重建中的一个小建议 #199

Closed
Rekoe opened this issue Apr 21, 2012 · 2 comments
Closed

关于表结构重建中的一个小建议 #199

Rekoe opened this issue Apr 21, 2012 · 2 comments
Labels

Comments

@Rekoe
Copy link
Member

Rekoe commented Apr 21, 2012

在调用
dao.create(class.boolean);的时候 如果创建创建成功也会提示一个
2012-04-21 16:22:24,031 [com.mchange.v2.c3p0.impl.NewPooledConnection]-[DEBUG] com.mchange.v2.c3p0.impl.NewPooledConnection@e35bb7 handling a throwable.
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'game_logs.item_logs_20120405' doesn't exist
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
at com.mysql.jdbc.Util.getInstance(Util.java:381)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1031)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:957)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3376)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3308)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1837)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1961)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2537)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2466)
at com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1383)
at com.mchange.v2.c3p0.impl.NewProxyStatement.executeQuery(NewProxyStatement.java:35)
at org.nutz.dao.impl.jdbc.AbstractJdbcExpert.setupEntityField(AbstractJdbcExpert.java:71)
at org.nutz.dao.impl.entity.AnnotationEntityMaker._checkupEntityFieldsWithDatabase(AnnotationEntityMaker.java:476)
at org.nutz.dao.impl.entity.AnnotationEntityMaker.make(AnnotationEntityMaker.java:243)
at org.nutz.dao.impl.EntityHolder.getEntity(EntityHolder.java:58)
at org.nutz.dao.impl.NutDao.create(NutDao.java:633)
at com.xyy.log.test.Test$1.run(Test.java:24)
at org.nutz.dao.TableName.run(TableName.java:41)
at com.xyy.log.test.Test.main(Test.java:22)
2012-04-21 16:22:24,046 [com.mchange.v2.sql.SqlUtils]-[DEBUG] Attempted to convert SQLException to SQLException. Leaving it alone. [SQLState: 42S02; errorCode: 1146]
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'game_logs.item_logs_20120405' doesn't exist
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
at com.mysql.jdbc.Util.getInstance(Util.java:381)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1031)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:957)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3376)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3308)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1837)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1961)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2537)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2466)
at com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1383)
at com.mchange.v2.c3p0.impl.NewProxyStatement.executeQuery(NewProxyStatement.java:35)
at org.nutz.dao.impl.jdbc.AbstractJdbcExpert.setupEntityField(AbstractJdbcExpert.java:71)
at org.nutz.dao.impl.entity.AnnotationEntityMaker._checkupEntityFieldsWithDatabase(AnnotationEntityMaker.java:476)
at org.nutz.dao.impl.entity.AnnotationEntityMaker.make(AnnotationEntityMaker.java:243)
at org.nutz.dao.impl.EntityHolder.getEntity(EntityHolder.java:58)
at org.nutz.dao.impl.NutDao.create(NutDao.java:633)
at com.xyy.log.test.Test$1.run(Test.java:24)
at org.nutz.dao.TableName.run(TableName.java:41)
at com.xyy.log.test.Test.main(Test.java:22)
2012-04-21 16:22:24,046 [com.mchange.v2.c3p0.impl.DefaultConnectionTester]-[DEBUG] Testing a Connection in response to an Exception:
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'game_logs.item_logs_20120405' doesn't exist
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
at com.mysql.jdbc.Util.getInstance(Util.java:381)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1031)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:957)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3376)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3308)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1837)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1961)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2537)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2466)
at com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1383)
at com.mchange.v2.c3p0.impl.NewProxyStatement.executeQuery(NewProxyStatement.java:35)
at org.nutz.dao.impl.jdbc.AbstractJdbcExpert.setupEntityField(AbstractJdbcExpert.java:71)
at org.nutz.dao.impl.entity.AnnotationEntityMaker._checkupEntityFieldsWithDatabase(AnnotationEntityMaker.java:476)
at org.nutz.dao.impl.entity.AnnotationEntityMaker.make(AnnotationEntityMaker.java:243)
at org.nutz.dao.impl.EntityHolder.getEntity(EntityHolder.java:58)
at org.nutz.dao.impl.NutDao.create(NutDao.java:633)
at com.xyy.log.test.Test$1.run(Test.java:24)
at org.nutz.dao.TableName.run(TableName.java:41)
at com.xyy.log.test.Test.main(Test.java:22)
2012-04-21 16:22:24,046 [org.nutz.dao.impl.jdbc.AbstractJdbcExpert]-[DEBUG] Table 'item_logs_20120405' doesn't exist!
2012-04-21 16:22:24,046 [com.mchange.v2.resourcepool.BasicResourcePool]-[DEBUG] trace com.mchange.v2.resourcepool.BasicResourcePool@15d17d7 [managed: 3, unused: 2, excluded: 0](e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@e35bb7)
2012-04-21 16:22:24,062 [com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool]-[DEBUG] Testing PooledConnection [com.mchange.v2.c3p0.impl.NewPooledConnection@e35bb7] on CHECKOUT.
2012-04-21 16:22:24,062 [com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool]-[DEBUG] Test of PooledConnection [com.mchange.v2.c3p0.impl.NewPooledConnection@e35bb7] on CHECKOUT has SUCCEEDED.
2012-04-21 16:22:24,062 [com.mchange.v2.resourcepool.BasicResourcePool]-[DEBUG] trace com.mchange.v2.resourcepool.BasicResourcePool@15d17d7 [managed: 3, unused: 2, excluded: 0](e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@e35bb7)
2012-04-21 16:22:24,062 [com.mchange.v2.c3p0.impl.NewPooledConnection]-[DEBUG] com.mchange.v2.c3p0.impl.NewPooledConnection@e35bb7 handling a throwable.
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'game_logs.item_logs_20120405' doesn't exist
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
at com.mysql.jdbc.Util.getInstance(Util.java:381)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1031)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:957)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3376)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3308)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1837)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1961)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2537)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2466)
at com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1383)
at com.mchange.v2.c3p0.impl.NewProxyStatement.executeQuery(NewProxyStatement.java:35)
at org.nutz.dao.impl.NutDao$9.invoke(NutDao.java:675)
at org.nutz.dao.impl.sql.run.NutDaoRunner.run(NutDaoRunner.java:63)
at org.nutz.dao.impl.DaoSupport.run(DaoSupport.java:175)
at org.nutz.dao.impl.NutDao.exists(NutDao.java:667)
at org.nutz.dao.impl.NutDao.create(NutDao.java:634)
at com.xyy.log.test.Test$1.run(Test.java:24)
at org.nutz.dao.TableName.run(TableName.java:41)
at com.xyy.log.test.Test.main(Test.java:22)
2012-04-21 16:22:24,062 [com.mchange.v2.sql.SqlUtils]-[DEBUG] Attempted to convert SQLException to SQLException. Leaving it alone. [SQLState: 42S02; errorCode: 1146]
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'game_logs.item_logs_20120405' doesn't exist
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
at com.mysql.jdbc.Util.getInstance(Util.java:381)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1031)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:957)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3376)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3308)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1837)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1961)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2537)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2466)
at com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1383)
at com.mchange.v2.c3p0.impl.NewProxyStatement.executeQuery(NewProxyStatement.java:35)
at org.nutz.dao.impl.NutDao$9.invoke(NutDao.java:675)
at org.nutz.dao.impl.sql.run.NutDaoRunner.run(NutDaoRunner.java:63)
at org.nutz.dao.impl.DaoSupport.run(DaoSupport.java:175)
at org.nutz.dao.impl.NutDao.exists(NutDao.java:667)
at org.nutz.dao.impl.NutDao.create(NutDao.java:634)
at com.xyy.log.test.Test$1.run(Test.java:24)
at org.nutz.dao.TableName.run(TableName.java:41)
at com.xyy.log.test.Test.main(Test.java:22)
2012-04-21 16:22:24,062 [com.mchange.v2.c3p0.impl.DefaultConnectionTester]-[DEBUG] Testing a Connection in response to an Exception:
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'game_logs.item_logs_20120405' doesn't exist
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
at com.mysql.jdbc.Util.getInstance(Util.java:381)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1031)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:957)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3376)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3308)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1837)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1961)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2537)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2466)
at com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1383)
at com.mchange.v2.c3p0.impl.NewProxyStatement.executeQuery(NewProxyStatement.java:35)
at org.nutz.dao.impl.NutDao$9.invoke(NutDao.java:675)
at org.nutz.dao.impl.sql.run.NutDaoRunner.run(NutDaoRunner.java:63)
at org.nutz.dao.impl.DaoSupport.run(DaoSupport.java:175)
at org.nutz.dao.impl.NutDao.exists(NutDao.java:667)
at org.nutz.dao.impl.NutDao.create(NutDao.java:634)
at com.xyy.log.test.Test$1.run(Test.java:24)
at org.nutz.dao.TableName.run(TableName.java:41)
at com.xyy.log.test.Test.main(Test.java:22)
2012-04-21 16:22:24,062 [com.mchange.v2.resourcepool.BasicResourcePool]-[DEBUG] trace com.mchange.v2.resourcepool.BasicResourcePool@15d17d7 [managed: 3, unused: 2, excluded: 0](e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@e35bb7)
2012-04-21 16:22:24,078 [com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool]-[DEBUG] Testing PooledConnection [com.mchange.v2.c3p0.impl.NewPooledConnection@1ee148b] on CHECKOUT.
2012-04-21 16:22:24,078 [com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool]-[DEBUG] Test of PooledConnection [com.mchange.v2.c3p0.impl.NewPooledConnection@1ee148b] on CHECKOUT has SUCCEEDED.
2012-04-21 16:22:24,078 [com.mchange.v2.resourcepool.BasicResourcePool]-[DEBUG] trace com.mchange.v2.resourcepool.BasicResourcePool@15d17d7 [managed: 3, unused: 2, excluded: 0](e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@e35bb7)
2012-04-21 16:22:24,078 [com.mchange.v2.c3p0.impl.NewPooledConnection]-[DEBUG] com.mchange.v2.c3p0.impl.NewPooledConnection@1ee148b handling a throwable.
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'game_logs.item_logs_20120405' doesn't exist
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
at com.mysql.jdbc.Util.getInstance(Util.java:381)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1031)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:957)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3376)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3308)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1837)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1961)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2537)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2466)
at com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1383)
at com.mchange.v2.c3p0.impl.NewProxyStatement.executeQuery(NewProxyStatement.java:35)
at org.nutz.dao.impl.jdbc.AbstractJdbcExpert.setupEntityField(AbstractJdbcExpert.java:71)
at org.nutz.dao.impl.entity.AnnotationEntityMaker._checkupEntityFieldsWithDatabase(AnnotationEntityMaker.java:476)
at org.nutz.dao.impl.entity.AnnotationEntityMaker.make(AnnotationEntityMaker.java:243)
at org.nutz.dao.impl.EntityHolder.getEntity(EntityHolder.java:58)
at org.nutz.dao.impl.EntityHolder.reloadEntity(EntityHolder.java:76)
at org.nutz.dao.impl.NutDao.create(NutDao.java:641)
at com.xyy.log.test.Test$1.run(Test.java:24)
at org.nutz.dao.TableName.run(TableName.java:41)
at com.xyy.log.test.Test.main(Test.java:22)
2012-04-21 16:22:24,078 [com.mchange.v2.sql.SqlUtils]-[DEBUG] Attempted to convert SQLException to SQLException. Leaving it alone. [SQLState: 42S02; errorCode: 1146]
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'game_logs.item_logs_20120405' doesn't exist
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
at com.mysql.jdbc.Util.getInstance(Util.java:381)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1031)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:957)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3376)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3308)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1837)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1961)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2537)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2466)
at com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1383)
at com.mchange.v2.c3p0.impl.NewProxyStatement.executeQuery(NewProxyStatement.java:35)
at org.nutz.dao.impl.jdbc.AbstractJdbcExpert.setupEntityField(AbstractJdbcExpert.java:71)
at org.nutz.dao.impl.entity.AnnotationEntityMaker._checkupEntityFieldsWithDatabase(AnnotationEntityMaker.java:476)
at org.nutz.dao.impl.entity.AnnotationEntityMaker.make(AnnotationEntityMaker.java:243)
at org.nutz.dao.impl.EntityHolder.getEntity(EntityHolder.java:58)
at org.nutz.dao.impl.EntityHolder.reloadEntity(EntityHolder.java:76)
at org.nutz.dao.impl.NutDao.create(NutDao.java:641)
at com.xyy.log.test.Test$1.run(Test.java:24)
at org.nutz.dao.TableName.run(TableName.java:41)
at com.xyy.log.test.Test.main(Test.java:22)
2012-04-21 16:22:24,078 [com.mchange.v2.c3p0.impl.DefaultConnectionTester]-[DEBUG] Testing a Connection in response to an Exception:
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'game_logs.item_logs_20120405' doesn't exist
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
at com.mysql.jdbc.Util.getInstance(Util.java:381)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1031)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:957)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3376)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3308)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1837)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1961)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2537)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2466)
at com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1383)
at com.mchange.v2.c3p0.impl.NewProxyStatement.executeQuery(NewProxyStatement.java:35)
at org.nutz.dao.impl.jdbc.AbstractJdbcExpert.setupEntityField(AbstractJdbcExpert.java:71)
at org.nutz.dao.impl.entity.AnnotationEntityMaker._checkupEntityFieldsWithDatabase(AnnotationEntityMaker.java:476)
at org.nutz.dao.impl.entity.AnnotationEntityMaker.make(AnnotationEntityMaker.java:243)
at org.nutz.dao.impl.EntityHolder.getEntity(EntityHolder.java:58)
at org.nutz.dao.impl.EntityHolder.reloadEntity(EntityHolder.java:76)
at org.nutz.dao.impl.NutDao.create(NutDao.java:641)
at com.xyy.log.test.Test$1.run(Test.java:24)
at org.nutz.dao.TableName.run(TableName.java:41)
at com.xyy.log.test.Test.main(Test.java:22)
2012-04-21 16:22:24,078 [org.nutz.dao.impl.jdbc.AbstractJdbcExpert]-[DEBUG] Table 'item_logs_20120405' doesn't exist!
2012-04-21 16:22:24,078 [com.mchange.v2.resourcepool.BasicResourcePool]-[DEBUG] trace com.mchange.v2.resourcepool.BasicResourcePool@15d17d7 [managed: 3, unused: 2, excluded: 0](e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@e35bb7)
2012-04-21 16:22:24,078 [com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool]-[DEBUG] Testing PooledConnection [com.mchange.v2.c3p0.impl.NewPooledConnection@e35bb7] on CHECKOUT.
2012-04-21 16:22:24,093 [com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool]-[DEBUG] Test of PooledConnection [com.mchange.v2.c3p0.impl.NewPooledConnection@e35bb7] on CHECKOUT has SUCCEEDED.
2012-04-21 16:22:24,093 [com.mchange.v2.resourcepool.BasicResourcePool]-[DEBUG] trace com.mchange.v2.resourcepool.BasicResourcePool@15d17d7 [managed: 3, unused: 2, excluded: 0](e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@e35bb7)
2012-04-21 16:22:24,093 [org.nutz.dao.impl.sql.run.NutDaoExecutor]-[DEBUG] CREATE TABLE item_logs_20120405(
id INT(32) AUTO_INCREMENT,
itemid VARCHAR(0) NOT NULL,
itemname VARCHAR(0) NOT NULL,
count INT(32) NOT NULL,
quality INT(32) NOT NULL,
charId VARCHAR(0) NOT NULL,
passportid VARCHAR(0) NOT NULL,
type INT(32) NOT NULL,
opType INT(32) NOT NULL,
roleName VARCHAR(0) NOT NULL,
createTime TIMESTAMP NOT NULL DEFAULT 0,
PRIMARY KEY (id)
) ENGINE=InnoDB CHARSET=utf8
感觉这个不太友好,如果创建成功后 这个提示 其实没有必要显示了吧!

@wendal
Copy link
Member

wendal commented Apr 21, 2012

难以避免,且影响不大,先放着吧

@wendal
Copy link
Member

wendal commented May 3, 2012

算了, 关掉了

@wendal wendal closed this as completed May 3, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants