Created
February 12, 2012 10:06
-
-
Save mlepicki/1807713 to your computer and use it in GitHub Desktop.
I see what you did there
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db.execSQL("update products set searchString = replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(lower(name),\"ą\",\"a\"),\"ś\",\"s\"),\"ć\",\"ć\"),\"ź\",\"z\"),\"ż\",\"z\"),\"ł\",\"l\"),\"ó\",\"o\"),\"ę\",\"e\"),\"ń\",\"n\"),\"(\",\"\"),\")\",\"\"),\".\",\"\"),\",\",\"\"),\"_\",\"\"),\"&\",\"\"),\"\"\"\",\"\"),\"'\",\"\"),\"-\",\"\"),\"Ż\",\"z\"),\"Ź\",\"z\")"); | |
db.execSQL("update brands set searchString = replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(lower(name),\"ą\",\"a\"),\"ś\",\"s\"),\"ć\",\"ć\"),\"ź\",\"z\"),\"ż\",\"z\"),\"ł\",\"l\"),\"ó\",\"o\"),\"ę\",\"e\"),\"ń\",\"n\"),\"(\",\"\"),\")\",\"\"),\".\",\"\"),\",\",\"\"),\"_\",\"\"),\"&\",\"\"),\"\"\"\",\"\"),\"'\",\"\"),\"-\",\"\"),\"Ż\",\"z\"),\"Ź\",\"z\")"); | |
db.execSQL("update tags set searchString = replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(lower(name),\"ą\",\"a\"),\"ś\",\"s\"),\"ć\",\"ć\"),\"ź\",\"z\"),\"ż\",\"z\"),\"ł\",\"l\"),\"ó\",\"o\"),\"ę\",\"e\"),\"ń\",\"n\"),\"(\",\"\"),\")\",\"\"),\".\",\"\"),\",\",\"\"),\"_\",\"\"),\"&\",\"\"),\"\"\"\",\"\"),\"'\",\"\"),\"-\",\"\"),\"Ż\",\"z\"),\"Ź\",\"z\")"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment