Skip to content

Copy as SQL UPDATEs with an empty where clause on temporary table #2538

Description

@Lilian-Chauvet

Description

DROP TABLE if EXISTS test;
CREATE TEMPORARY TABLE test (
	id INT PRIMARY KEY AUTO_INCREMENT,
	fullName VARCHAR(100),
	isDumb CHAR(1));
	
	
	INSERT INTO test (fullName, isDumb) VALUES ('Joe', 'Y'), ('Jack', 'Y'), ('William', 'Y'), ('Avrell', 'Y');
	
	
SELECT id, isDumb FROM test;
Image

When doing Ctrl+A on the result grid and then "Copy as SQL UPDATEs" (see screenshot), it produced the following update queries, which aren't valid :

UPDATE `test` SET `id`=1, `isDumb`='Y' WHERE;
UPDATE `test` SET `id`=2, `isDumb`='Y' WHERE;
UPDATE `test` SET `id`=3, `isDumb`='Y' WHERE;
UPDATE `test` SET `id`=4, `isDumb`='Y' WHERE;

HeidiSQL version and OS

12.20.0.7320

Database server version

Reproduction recipe

Error/Backtrace

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugDefective behaviour in HeidiSQLconfirmedIssue verified by project membernettype-mysqlMySQL and/or MariaDB specific issue

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions