public override SqlClauseWithValue MakeBitwiseAndClause(string columnName)
{
StringBuilder sb = DbCaches.StringBuilders.Get();
SqlClauseWithValue retVal = DbCaches.Clauses.Get();
switch (Type)
{
case DatabaseType.SQLSERVER:
sb.Append(" (");
sb.Append(columnName);
sb.Append(" & ");
retVal.PartBeforeValue = sb.ToString();
retVal.PartAfterValue = ")";
break;
default:
throw new NotImplementedException("Bitwise and is not supported for this connection: " + this);
}
DbCaches.StringBuilders.Return(sb);
return retVal;
}