Description:
----[For better reports, please attach the log file after submitting. You can find it in C:\Users\callm\AppData\Roaming\MySQL\Workbench\log\wb.log]
[6, 20:36:14] Drop database office: Running...
[6, 20:36:14] Drop database office: 1 row(s) affected
[1, 20:36:20] CREATE database office: Running...
[1, 20:36:20] CREATE database office: 1 row(s) affected
[2, 20:36:23] USE office: Running...
[2, 20:36:23] USE office: 0 row(s) affected
[3, 20:36:26] CREATE table employees (Emp_ID INT primary key not null, Emp_Name char(255), Emp_email varchar(100), Emp_Department int): Running...
[3, 20:36:26] CREATE table employees (Emp_ID INT primary key not null, Emp_Name char(255), Emp_email varchar(100), Emp_Department int): 0 row(s) affected
[4, 20:36:28] INSERT into employees VALUES ("001", "Mota", "M@gmail.com", 2): Running...
[4, 20:36:28] INSERT into employees VALUES ("001", "Mota", "M@gmail.com", 2): 1 row(s) affected
How to repeat:
CREATE database office;
USE office;
CREATE table employees (Emp_ID INT primary key not null, Emp_Name char(255), Emp_email varchar(100), Emp_Department int);
INSERT into employees VALUES ("001", "Mota", "M@gmail.com", 2);
INSERT into employees VALUES ("000", "Mota", "M@gmail.com", 2);
INSERT into employees VALUES ("", "Mota", "M@gmail.com", 2);
Drop database office;
select *from employees;
Suggested fix:
AN error message should pop up, or we should not be able to pass a string in INT datatype.
Description: ----[For better reports, please attach the log file after submitting. You can find it in C:\Users\callm\AppData\Roaming\MySQL\Workbench\log\wb.log] [6, 20:36:14] Drop database office: Running... [6, 20:36:14] Drop database office: 1 row(s) affected [1, 20:36:20] CREATE database office: Running... [1, 20:36:20] CREATE database office: 1 row(s) affected [2, 20:36:23] USE office: Running... [2, 20:36:23] USE office: 0 row(s) affected [3, 20:36:26] CREATE table employees (Emp_ID INT primary key not null, Emp_Name char(255), Emp_email varchar(100), Emp_Department int): Running... [3, 20:36:26] CREATE table employees (Emp_ID INT primary key not null, Emp_Name char(255), Emp_email varchar(100), Emp_Department int): 0 row(s) affected [4, 20:36:28] INSERT into employees VALUES ("001", "Mota", "M@gmail.com", 2): Running... [4, 20:36:28] INSERT into employees VALUES ("001", "Mota", "M@gmail.com", 2): 1 row(s) affected How to repeat: CREATE database office; USE office; CREATE table employees (Emp_ID INT primary key not null, Emp_Name char(255), Emp_email varchar(100), Emp_Department int); INSERT into employees VALUES ("001", "Mota", "M@gmail.com", 2); INSERT into employees VALUES ("000", "Mota", "M@gmail.com", 2); INSERT into employees VALUES ("", "Mota", "M@gmail.com", 2); Drop database office; select *from employees; Suggested fix: AN error message should pop up, or we should not be able to pass a string in INT datatype.