mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Add warnings for single line inserts. To do this I had to convert count_cuted_fields to an enum (to be able to detect setting a NOT NULL field to NULL)
This commit is contained in:
@@ -64,7 +64,7 @@ SELECT FOUND_ROWS();
|
||||
|
||||
SELECT DISTINCT email FROM t2 LEFT JOIN t1 ON kid = t2.id WHERE t1.id IS NULL LIMIT 10;
|
||||
SELECT DISTINCT email FROM t2 LEFT JOIN t1 ON kid = t2.id WHERE t1.id IS NULL ORDER BY email LIMIT 10;
|
||||
INSERT INTO `t1` (`id`, `kid`) VALUES ('', '150');
|
||||
INSERT INTO `t1` (`id`, `kid`) VALUES ('0', '150');
|
||||
|
||||
SELECT SQL_CALC_FOUND_ROWS DISTINCT email FROM t2 LEFT JOIN t1 ON kid = t2.id WHERE t1.id IS NULL LIMIT 10;
|
||||
SELECT FOUND_ROWS();
|
||||
|
||||
Reference in New Issue
Block a user