In our tests, filters on LONGTEXT fields are working.
This is the test program:
#include "fivewin.ch"
function Main()
local oCn, cSql, oRs
oCn := FW_DemoDB( "ADO" )
TRY
oCn:Execute( "DROP TABLE testmemo" )
CATCH
END
TEXT INTO cSql
CREATE TABLE testmemo (
id INT AUTO_INCREMENT PRIMARY KEY
,name VARCHAR(10)
,memo LONGTEXT
)
ENDTEXT
oCn:Execute( cSql )
TEXT INTO cSql
INSERT INTO testmemo ( name, memo ) VALUES
( "AAA", "one two three" ),
( "BBB", "three four five" ),
( "CCC", "five six seven" )
ENDTEXT
oCn:Execute( cSql )
oRs := FW_OpenRecordSet( oCn, "testmemo" )
? oRs:RecordCount() // ----------------------> 3
oRs:Filter := "MEMO LIKE %three%"
oRs:MoveFirst()
? oRs:RecordCount() // ----------------------> 2 : Filter success
oRs:Close()
oCn:Close()
return nil