Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

jmeter insert jdbc request error: Invalid data type: int

I’m run insert jdbc request from csv file in Jmeter.sql is:

INSERT INTO SZ_1E_MYSQL1 (TS_15M,MSISDN,IMEI,IMSI, MCC, MNC, LAC, CELL) VALUES (?, ?, ?, ?, ?, ?, ?, ?); 

I set Parameter values is:

${TS_15M},${MSISDN},${IMEI},${IMSI},${MCC},${MNC},${LAC},${CELL}.

Parameter types:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

varchar,bigint,bigint,bigint,int,int,int,bigint. Table Structure:

mysql> desc SZ_1E_MYSQL1;
+--------+-------------+------+-----+---------+-------+
| Field  | Type        | Null | Key | Default | Extra |
+--------+-------------+------+-----+---------+-------+
| TS_15M | varchar(17) | YES  |     | NULL    |       |
| MSISDN | bigint      | YES  |     | NULL    |       |
| IMEI   | bigint      | YES  |     | NULL    |       |
| IMSI   | bigint      | YES  |     | NULL    |       |
| MCC    | int         | YES  |     | NULL    |       |
| MNC    | int         | YES  |     | NULL    |       |
| LAC    | int         | YES  |     | NULL    |       |
| CELL   | bigint      | YES  |     | NULL    |       |
+--------+-------------+------+-----+---------+-------+
8 rows in set (0.00 sec)

but test resultis:
Invalid data type: int

How to fix problem?

>Solution :

I don’t think there is int data type in MySQL, most probably it’s INTEGER

Take a look at Java, JDBC, and MySQL Types

enter image description here

More information:

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading