This commit is contained in:
2018-12-03 22:48:03 +00:00
parent 3ec1eb7ee2
commit 01ef77a6b7
2 changed files with 4 additions and 28 deletions

View File

@@ -138,7 +138,7 @@ namespace AyaNova.Biz
#region Build for specific type
switch (sDataType)
{
case "System.String":
case "text":
//escape any pre-existing apostrophes
//i.e. "O'Flaherty's pub" would cause fits
//if this wasn't done
@@ -241,7 +241,7 @@ namespace AyaNova.Biz
}
break;
case "System.Boolean":
case "bool":
{
switch (sOperator)
{
@@ -268,32 +268,6 @@ namespace AyaNova.Biz
}
break;
case "System.Guid":
{
switch (sOperator)
{
case "Equals":
sb.Append("= ");
sb.Append("'");
sb.Append(sValue);
sb.Append("'");
break;
case "NotEquals":
sb.Append("<> ");
sb.Append("'");
sb.Append(sValue);
sb.Append("'");
break;
default:
throw new System.ArgumentOutOfRangeException("OPERATOR_TYPE", sOperator, "GridToSqlCriteria unhandled operator type [" + sOperator + "] in BOOL");
}
}
break;
case "date":
{

View File

@@ -49,6 +49,8 @@ namespace raven_integration
//TEXT
//
//TODO: Specifically test a string with an apostrophe in it
///////////////////////
//INT
//