You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CREATETABLE `accounts` (
`id`int(11) NOT NULL AUTO_INCREMENT,
`field2`varchar(30) NOT NULL DEFAULT '',
`field3`varchar(255) NOT NULL DEFAULT '',
`field4`tinyint(4) NOT NULL DEFAULT '0',
`field5`timestampNULL DEFAULT NULL,
`field6`timestampNULL DEFAULT CURRENT_TIMESTAMP,
`field7`tinyint(4) NOT NULL DEFAULT '0',
`field8`text,
`field9`tinyint(4) NOT NULL DEFAULT '0',
`field10` tinytext,
`field11` tinytext,
`field12`timestampNOT NULL DEFAULT '2000-01-01 00:00:00',
`field13`tinyint(4) DEFAULT NULL,
`field14`int(11) DEFAULT '0',
`field15`int(11) DEFAULT NULL,
`field16`tinyint(4) NOT NULL DEFAULT '10',
`field17`varchar(64) DEFAULT NULL,
`field18`int(11) NOT NULL DEFAULT '0',
`field19`int(11) NOT NULL DEFAULT '0',
`field20`timestampNULL DEFAULT NULL,
`field21`timestampNULL DEFAULT NULL,
`field22`int(3) DEFAULT NULL,
`field23`int(6) NOT NULL DEFAULT '0',
`field24`int(6) NOT NULL DEFAULT '0',
`field25`bigint(20) NOT NULL DEFAULT '0',
`field26`int(11) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `field2` (`field2`),
KEY `ranking1` (`id`,`field7`,`field13`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC
insert into accounts (field2) values ('rust');
let row = sqlx::query("SELECT * FROM accounts").fetch_one(&mut conn).await?;
problem: thread 'main' panicked at 'index out of bounds: the len is 58 but the index is 235', cargo/registry/src/git.luolix.top-1ecc6299db9ec823/sqlx-core-0.2.0/src/mysql/protocol/row.rs:107:65
The text was updated successfully, but these errors were encountered:
Thanks for the issue report. We talked on Discord but to recap, this was an issue of how we were interpreting null values when decoding the row from MySQL.
Simply reproducing the case with table:
problem: thread 'main' panicked at 'index out of bounds: the len is 58 but the index is 235', cargo/registry/src/git.luolix.top-1ecc6299db9ec823/sqlx-core-0.2.0/src/mysql/protocol/row.rs:107:65
The text was updated successfully, but these errors were encountered: