1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-18 21:35:51 -04:00

rebased with Marr.Data

there is a broken test.
This commit is contained in:
Keivan Beigi
2013-05-27 16:35:53 -07:00
parent 6e6df842a0
commit 261ce772de
8 changed files with 199 additions and 58 deletions
+15
View File
@@ -55,5 +55,20 @@ namespace Marr.Data.QGen.Dialects
return true;
}
}
public virtual string StartsWithFormat
{
get { return "({0} LIKE {1} + '%')"; }
}
public virtual string EndsWithFormat
{
get { return "({0} LIKE '%' + {1})"; }
}
public virtual string ContainsFormat
{
get { return "({0} LIKE '%' + {1} + '%')"; }
}
}
}
+15
View File
@@ -14,5 +14,20 @@ namespace Marr.Data.QGen.Dialects
return "SELECT last_insert_rowid();";
}
}
public override string StartsWithFormat
{
get { return "({0} LIKE {1} || '%')"; }
}
public override string EndsWithFormat
{
get { return "({0} LIKE '%' || {1})"; }
}
public override string ContainsFormat
{
get { return "({0} LIKE '%' || {1} || '%')"; }
}
}
}