Jmeter ------ reponse error "unknown column 'xxxxx' in 'where clause'"

Source: Internet
Author: User

Tag: Art Sele width todo returned result: Select JDBC Error

 

I. Problem Description

Jmeter adds a connection to the MySQL database. After compiling the JDBC request, the following error occurs: "unknown column 'be7f5b6e750bb6becf85521333864420 'in 'where clause'".

 

Ii. Cause

SQL query conditions lack double quotation marks

 

Iii. Problem Analysis: Let's view the written SQL statements.

The correct syntax is: Select * From todo where todo_start =$ {todo_start} And user_uuid = "be7f5b6e750bb6becf85521333864420 ";

Naturally, the UID returned from the/user/login reponse is be7f5b6e750bb6becf855000033864420, because the UID is obtained from the JSON extra added in/user/login, therefore, in SQL, the UID is directly transmitted to user_uuid: user_uuid = "$ {uid}". An error is reported during running.

 

Iv. Solution

 

Jmeter ------ reponse error "unknown column 'xxxxx' in 'where clause'"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.