Quantcast
Channel: MySQL Forums - InnoDB
Viewing all articles
Browse latest Browse all 1954

Data too long for column 'vdisuser' at row 1 (1 reply)

$
0
0
All

Everything was running along smoothly, then I started to get an odd error message
'Data too long for column 'vdisuser' at row 1'

Table Structure is
CREATE TABLE `vdisuser` (
`id` int NOT NULL AUTO_INCREMENT,
`Username` varchar(45) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT=' ';


Stored procedure is:-
CREATE DEFINER=`root`@`localhost` PROCEDURE `spInsertVDISUser`(IN vdisuser char)
BEGIN
Insert into vdisuser
(username)
value
(vdisuser);

END

Example call
call spInsertVDISUser('ColinTest');

Error Message is:-
'Data too long for column 'vdisuser' at row 1'

Has Something has changed in the settings ?

Could use some help here !

Viewing all articles
Browse latest Browse all 1954

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>