Hello.
I am having trouble figuring out what settings I need to apply on the datasource level to force SQL query generation not to use case insensitive approach by default.
None of the specially added attributes (defaultTextMatchStyle="exactCase" on the datasource tag, textMatchStyle="exactCase" and operator="equals" on the guwid field tag) convinced the framework not to use LOWER() in the SQL generated
So, sending via REST:
or
generates the SQL:
SELECT dummy.guwid, dummy.IMTHIST_INSERT_TS AS eventTimeStamp FROM dummy WHERE (LOWER(dummy .guwid)=LOWER('f059134141832171700573')
using smartgwt 5.0-p20150423
I am having trouble figuring out what settings I need to apply on the datasource level to force SQL query generation not to use case insensitive approach by default.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<DataSource ID="wdTestEquals" serverType="sql" dbName="TXDEV1" tableName="dummy" autoJoinTransactions="true" defaultTextMatchStyle="exactCase">
<fields>
<field name="guwid" nativeName="guwid" escapeHTML="true" textMatchStyle="exactCase" operator="equals"/>
<field name="eventTimeStamp" nativeName="IMTHIST_INSERT_TS" escapeHTML="true"/>
</fields>
</DataSource>So, sending via REST:
Code:
{
dataSource:"wdTestEquals",
operationType:"fetch",
data:{
guwid:"F059134141832171700573"
}
}Code:
{
dataSource:"wdTestEquals",
operationType:"fetch",
data:{
guwid:"F059134141832171700573"
},
textMatchStyle:"exactCase"
}SELECT dummy.guwid, dummy.IMTHIST_INSERT_TS AS eventTimeStamp FROM dummy WHERE (LOWER(dummy .guwid)=LOWER('f059134141832171700573')
using smartgwt 5.0-p20150423