Bug #110943 | unable to insertjava.sql.SQLException: Data truncated for column 'HIREDATE' at r | ||
---|---|---|---|
Submitted: | 7 May 2023 6:31 | Modified: | 8 May 2023 7:59 |
Reporter: | prasanna kumar | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | Connector / J | Severity: | S3 (Non-critical) |
Version: | 8.0 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[7 May 2023 6:31]
prasanna kumar
[7 May 2023 6:34]
prasanna kumar
create table HIRE(HIREID INT NOT NULL primary key, CUSTOMERID INT,ALBUMID INT, HIREDATE INT,RETURNDATE INT,STATUS varchar(100), TOTAL_HIRE_PRICE INT,FOREIGN KEY(CUSTOMERID) REFERENCES USER(CUSTOMERID), FOREIGN KEY(ALBUMID) REFERENCES ALBUMDETAILS(ALBUMID)); i created this table
[8 May 2023 7:59]
MySQL Verification Team
Hello Prasanna Kumar, Thank you for writing us, but this is not a bug. Please change the datatype of HIREDATE and RETURNDATE to DATE or DATETIME and try again. Thanks. Regards, Ashwini Patil