This commit is contained in:
@@ -138,7 +138,7 @@ namespace AyaNova.Biz
|
|||||||
#region Build for specific type
|
#region Build for specific type
|
||||||
switch (sDataType)
|
switch (sDataType)
|
||||||
{
|
{
|
||||||
case "System.String":
|
case "text":
|
||||||
//escape any pre-existing apostrophes
|
//escape any pre-existing apostrophes
|
||||||
//i.e. "O'Flaherty's pub" would cause fits
|
//i.e. "O'Flaherty's pub" would cause fits
|
||||||
//if this wasn't done
|
//if this wasn't done
|
||||||
@@ -241,7 +241,7 @@ namespace AyaNova.Biz
|
|||||||
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "System.Boolean":
|
case "bool":
|
||||||
{
|
{
|
||||||
switch (sOperator)
|
switch (sOperator)
|
||||||
{
|
{
|
||||||
@@ -268,32 +268,6 @@ namespace AyaNova.Biz
|
|||||||
}
|
}
|
||||||
break;
|
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":
|
case "date":
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
@@ -49,6 +49,8 @@ namespace raven_integration
|
|||||||
//TEXT
|
//TEXT
|
||||||
//
|
//
|
||||||
|
|
||||||
|
//TODO: Specifically test a string with an apostrophe in it
|
||||||
|
|
||||||
///////////////////////
|
///////////////////////
|
||||||
//INT
|
//INT
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user