Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
SQL
select *from urunler where musteri like %ir%;

'test datas:

'+---musteri---+---ID--+
'+-------------+-------+
'+---İrem------+---1---+
'+---Kadir-----+---2---+
'+---Demir-----+---3---+

'returning result:

'Kadir

'Demir


if use %İr% then İrem is returning but Kadir and Demir not rehturning. There same problem in orther turkish characters, but not any exact solution. I am programming mono android and I need to resolve this problem as soon as possible. Waiting for your help,
Posted

C#
[SQLiteFunction(Name = "TOUPPER", Arguments = 1, FuncType = FunctionType.Scalar)]
    public class TOUPPER: SQLiteFunction
    {
        public override object Invoke(object[] args)
        {
            return args[0].ToString().ToUpper();
        }
    }       

    [SQLiteFunction(Name = "COLLATION_CASE_INSENSITIVE", FuncType = FunctionType.Collation)]
    class CollationCaseInsensitive : SQLiteFunction {
        public override int Compare(string param1, string param2) {
            return String.Compare(param1, param2, true);
        }
    }  

C#
TOUPPER.RegisterFunction(typeof(TOUPPER));


solved in this way, but also mono c # 'using the library, here is how I need to do Android.Database.Sqlite.SQLiteDatabase
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900