08-16-2011, 07:56 PM
Помогите решить проблему пожалуйста, каждую минуту выходит вот такая ошибка в ГС
таблицы с characters.sql
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'obj_i
d' in 'where clause'
at sun.reflect.GeneratedConstructorAccessor167.newInstance(Unknown Sourc
e)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
rce)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
at com.mysql.jdbc.Util.getInstance(Util.java:382)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3603)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3535)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1989)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2150)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2620)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2570)
at com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1476)
at org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingSt
atement.java:208)
at org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingSt
atement.java:208)
at l2n.database.FiltredStatement.executeQuery(Unknown Source)
at l2n.game.A.A.M.M(Unknown Source)
at l2n.game.A.A.M.C(Unknown Source)
at l2n.game.A.A.M.C(Unknown Source)
at l2n.game.A.A.M.B(Unknown Source)
at l2n.game.A.A.A(Unknown Source)
at l2n.game.network.clientpackets.RequestBypassToServer.runImpl(Unknown
Source)
at l2n.game.network.clientpackets.L2GameClientPacket.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1081)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:574)
at java.lang.Thread.run(Unknown Source)
таблицы с characters.sql
DROP TABLE IF EXISTS `characters`;
CREATE TABLE `characters` (
`account_name` VARCHAR(45) NOT NULL DEFAULT '',
`obj_Id` INT UNSIGNED NOT NULL DEFAULT 0,
`char_name` varchar(35) character set utf8 NOT NULL default '',
`face` TINYINT UNSIGNED DEFAULT NULL,
`hairStyle` TINYINT UNSIGNED DEFAULT NULL,
`hairColor` TINYINT UNSIGNED DEFAULT NULL,
`sex` BOOLEAN DEFAULT NULL,
`heading` MEDIUMINT(6) DEFAULT NULL,
`x` MEDIUMINT(7) DEFAULT NULL,
`y` MEDIUMINT(7) DEFAULT NULL,
`z` MEDIUMINT(7) DEFAULT NULL,
`karma` INT DEFAULT NULL,
`pvpkills` INT DEFAULT NULL,
`pkkills` INT DEFAULT NULL,
`clanid` INT DEFAULT NULL,
`createtime` int unsigned NOT NULL DEFAULT 0,
`deletetime` INT UNSIGNED NOT NULL DEFAULT 0,
`title` varchar(16) character set utf8 default NULL,
`rec_have` SMALLINT(3) UNSIGNED NOT NULL DEFAULT '0',
`rec_left` SMALLINT(3) UNSIGNED NOT NULL DEFAULT '0',
`accesslevel` SMALLINT(4) DEFAULT NULL,
`online` BOOLEAN DEFAULT NULL,
`onlinetime` INT UNSIGNED NOT NULL DEFAULT '0',
`lastAccess` INT UNSIGNED NOT NULL DEFAULT 0,
`clan_privs` INT DEFAULT 0,
`wantspeace` INT DEFAULT 0,
`leaveclan` INT UNSIGNED NOT NULL DEFAULT 0,
`deleteclan` INT UNSIGNED NOT NULL DEFAULT 0,
`nochannel` INT NOT NULL DEFAULT 0, -- not UNSIGNED, negative value means 'forever'
`noble` decimal(2,0) NOT NULL DEFAULT 0,
`ketra` decimal(5,0) NOT NULL DEFAULT 0,
`varka` decimal(5,0) NOT NULL DEFAULT 0,
`ram` decimal(5,0) NOT NULL DEFAULT 0,
`pledge_type` SMALLINT NOT NULL DEFAULT '0',
`pledge_rank` TINYINT UNSIGNED NOT NULL DEFAULT '0',
`lvl_joined_academy` TINYINT UNSIGNED NOT NULL DEFAULT '0',
`apprentice` INT UNSIGNED NOT NULL DEFAULT 0,
`key_bindings` varbinary(8192) default NULL,
`pcBangPoints` INT(10) NOT NULL DEFAULT '0',
`logoutTime` INT(11) unsigned NOT NULL default '0',
`vitPoints` DOUBLE(7,1) NOT NULL default '0.0',
`fame` INT(11) unsigned NOT NULL default '0',
`bookmarkslot` SMALLINT UNSIGNED NOT NULL DEFAULT 0,
`warehouse` INT(11) NOT NULL DEFAULT '0',
`lastteleport` decimal(20,0) DEFAULT NULL,
PRIMARY KEY (obj_Id),
UNIQUE KEY `char_name` (`char_name`),
KEY `account_name` (`account_name`),
KEY `clanid` (`clanid`),
KEY `char_name_2` (`char_name`),
KEY `obj_Id` (`obj_Id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;