android


SQLite NOT LIKE statement in android


I tried the following method to query for functiontitles not beginning with "Exhibitor Daily".
public Cursor fetchAllSchedulesByDate(String newConfDate){
Cursor mCursor = db.query(SQLITE_TABLE, new String[] {
KEY_ID, KEY_functiontitle, KEY_fucntioindate, KEY_functionStartTime, KEY_functionEndTime, KEY_functiondescription, KEY_LOCATIONNAME },
KEY_fucntioindate + " = " + newConfDate + " AND " + KEY_functiontitle + " NOT LIKE 'Exhibitor Daily%'", null, null, null, null, null);
if (mCursor != null) {
mCursor.moveToFirst();
}
return mCursor;
}
However, it seems to be ignoring the NOT LIKE clause in the query and the results set contains functiontitles beginning with "Exhibitor Daily" which is not what is expected. If I replace the NOT LIKE clause with LIKE 'Exhibitor Daily%', it works correctly as expected and the results set contains only titles beginning with Exhibitor Daily. Can't see what could be wrong.

Related Links

The “cannot launch avd in emulator”
Auto restart Ionic / Cordova App after crash
can't log in google play games (apk not yet availabe on google play)
Android Animations - Animate view to a specific position
Is this the correct way of adding parammeters to constructor in Dagger 2?
developing an android application with servlet
Admob interstitial orientation
Android StaggeredGridLayoutManager offset bug
Change fillColor from vector in android programmatically
Take test app from android studio off of phone for use.
How to get context properly to save data into shared preferences from fragment after an asynchronous action?
how to correctly use android.test.ServiceTestCase?
How do I get my Android app to track your total distance traveled?
OkHttpClient “open” method missing in v2.0
Circular imageview dissappears in listview after fling
Image gallery album cover effect in android

Categories

HOME
notepad++
localization
adal
composite-primary-key
switch-statement
mips
interpolation
opengl-3
computer-science
g++
mod-security
mxgraph
favicon
glyphicons
searchview
intershop
chargify
red5
template-engine
html5-appcache
user-experience
gulp-watch
systemtime
perlbrew
shared
fractions
datastax-enterprise-graph
errbot
user-defined-functions
mql
boost-asio
scrollview
simplecv
dsx-desktop
processwire
sim-toolkit
sql-server-ce
doc
wmp
android-exoplayer
facebook-social-plugins
plan-9
flask-restful
clarifai
custom-font
opengl-4
rmongo
rocks
angular2-testing
envi
uicolor
mta
turbo-prolog
html-to-pdf
qbxml
ascii-art
ons-api
fuelcms
dulwich
mirror
aspectj-maven-plugin
kubuntu
dot.js
bcache
exceldatareader
variadic-templates
trdion2011
websphere-esb
light
breakout
printdialog
scringo
node-blade
wp7test
virtual-pc
rmiregistry
ilasm
tournament
ruby-1.8
isapi-extension
sifr
perl5.12

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App