G
Guest
Hi,
We are trying to provide keyword searching with the Oracle Text engine using
the 'contains' predicate. However, it does not work when using NVarChar or
DBType.String parameters like so:
IDbConnection conn = database.CreateConnection();
conn.Open();
IDbCommand comm = conn.CreateCommand();
IDbDataParameter param = new OracleParameter();
param.ParameterName = "pFilterValue";
param.DbType = DbType.String;
param.Value = "\"materials\"";
comm.Parameters.Add(param);
comm.CommandText = "select * from tEMailArch where contains(fEmailSubj,
FilterValue) > 0";
IDataReader reader = comm.ExecuteReader();
while (reader.Read())
{
Console.WriteLine(reader[0].ToString());
}
conn.Close();
Is there any way to get this to work? We REALLY require the ability to
search on unicode text in the database.
We are trying to provide keyword searching with the Oracle Text engine using
the 'contains' predicate. However, it does not work when using NVarChar or
DBType.String parameters like so:
IDbConnection conn = database.CreateConnection();
conn.Open();
IDbCommand comm = conn.CreateCommand();
IDbDataParameter param = new OracleParameter();
param.ParameterName = "pFilterValue";
param.DbType = DbType.String;
param.Value = "\"materials\"";
comm.Parameters.Add(param);
comm.CommandText = "select * from tEMailArch where contains(fEmailSubj,
FilterValue) > 0";
IDataReader reader = comm.ExecuteReader();
while (reader.Read())
{
Console.WriteLine(reader[0].ToString());
}
conn.Close();
Is there any way to get this to work? We REALLY require the ability to
search on unicode text in the database.