I am using 32 bit MySQL ODBC connector 8.19 with Classic asp MYSQL server is 8. CHARACTER is latin1 and COLLATE is latin1_swedish_ci Connection string has OPTION=3 Storage Engine is InnoDB
Following is the table structure
CREATE TABLE Data_temp
(
ROWGUID varchar(36) default (UUID()) NOT NULL ,
col_desc varchar(10) NOT NULL ,
History varchar (4000),
PRIMARY KEY Data_temp_P_KEY(ROWGUID)
) ;
Using Adodb command run following query
Select * from Data_temp WHERE col_desc=?
and parameter is supplied by adodb create parameter.
The result is returned in adodb recordset as
set recordset=command.execute method
recordset is not returned if History column has data more than 1024 characters
If Same query is run in following scenarios as ,
Select col_desc,Rowguid from Data_temp WHERE col_desc=?i.e. column list do not contain that large data column then recordset is returned
Select col_desc,Rowguid,substring(history,1,1024) from Data_temp WHERE col_desc=?also works.
By making column as TEXT data type instead of varchar
What could be the reason?
Is there any limit on returning the column data? One more observation instead of using parameterised query if query is run directly with value in query itself
Select * from Data_temp WHERE Col_Desc='aa'
without parameter then recordset is returned
Thanks in advance