Skip to content

Bug: InsertAll<>() fails differently now #768

Open
@fake-fur

Description

@fake-fur

Bug Description

The previous InsertAll<> is now fixed with 1.12.8-b1 but a different InsertAll<> error is now being thrown on a similar simple insert

Exception Message:

"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 'SELECT LAST_INSERT_ID() AS `Id`, ? AS `OrderColumn` ; INSERT INTO `syncchecksums' at line 1"}	MySql.Data.MySqlClient.MySqlException

Schema and Model:

Model:

using RepoDb.Attributes;
namespace dsync.Models
{
	[Map("syncchecksums")]
	class HashResult
	{
		[Primary]
		public int recordno { get; set; }
		public string name { get; set; }
		public int date { get; set; }
		public string hash { get; set; }
		public int espsitecode { get; set; }
		public int count { get; set; }
		public string ids { get; set; }
	}
}
CREATE TABLE `syncchecksums` (
	`recordno` INT(11) NOT NULL AUTO_INCREMENT,
	`name` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8_general_ci',
	`date` INT(11) NULL DEFAULT NULL,
	`hash` VARCHAR(10000) NULL DEFAULT NULL COLLATE 'utf8_general_ci',
	`espsitecode` INT(11) NULL DEFAULT NULL,
	`count` INT(11) NULL DEFAULT NULL,
	`ids` VARCHAR(10000) NULL DEFAULT NULL COLLATE 'utf8_general_ci',
	PRIMARY KEY (`recordno`) USING BTREE,
	UNIQUE INDEX `key_record_no` (`recordno`) USING BTREE
)
COLLATE='utf8_general_ci'
ENGINE=InnoDB

RepoDb 1.12.8-beta1
RepoDb.MySql 1.1.4

thanks and sorry for another problem :/

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwontfixThis will not be worked onworking-as-expectedThe reported issue is working as expected.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions