EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB485554: Parameter count and table column do not match error is seen when running transaction document against SingleStore


Yang Huang

Quality Engineer, Principal • MicroStrategy


Parameter count and table column do not match error is seen when running transaction document against SingleStore

Symptom
When running transaction documents against SingleStore datasource and using the SingleStore native ODBC driver, once multiple statements query is contained in the report, you may encounter this error, “Parameter count and table column count do not match...”,

ka04W000001IvpWQAS_0EM4W000004bCXM.png

Check the Executed SQL, it looks like
INSERT INTO PQTX_DATATYPES(INTEGER_TYPE, NVARCHAR_TYPE, DATE_TYPE)values (1,'second statement', '1999-10-01');
INSERT INTO PQTX_CUSTOMER(CUSTOMER_ID, CUST_LAST_NAME, CUST_BIRTHDATE)values (?, ?, ?);
There’re 2 or more SQL statements contained and executed in 1 transaction.
Another error may be encountered when running transaction document which contains UPDATE statement, “Feature 'UPDATE...LIMIT must be constrained to a single partition' is not supported by SingleStore Distributed”,

ka04W000001IvpWQAS_0EM4W000004bCXN.png

Cause
There are couple of bugs in SingleStore ODBC driver which version is lower than 1.1.0, e.g. 1.0.8, and the bugs have been fixed in version 1.1.0.
Action
Upgrade SingleStore ODBC driver to latest version which is 1.1.0 or later.
Version:
11.3.x
 


Comment

0 comments

Details

Knowledge Article

Published:

June 22, 2022

Last Updated:

June 22, 2022