Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Persister
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13204/Persister
Modified Files:
AbstractEntityPersister.cs EntityPersister.cs
NormalizedEntityPersister.cs
Log Message:
Fixed performance issue regarding empty strings
Index: NormalizedEntityPersister.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Persister/NormalizedEntityPersister.cs,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -d -r1.31 -r1.32
*** NormalizedEntityPersister.cs 14 Sep 2004 17:49:56 -0000 1.31
--- NormalizedEntityPersister.cs 21 Sep 2004 09:58:24 -0000 1.32
***************
*** 1462,1466 ****
//TODO: H2.0.3 synch - figure out what is different here and why it is different
// make sure an Alias was actually passed into the statement
! if(alias!=null && alias!=String.Empty)
return StringHelper.Prefix(cols, Alias(alias, tableIndex) + StringHelper.Dot);
else
--- 1462,1466 ----
//TODO: H2.0.3 synch - figure out what is different here and why it is different
// make sure an Alias was actually passed into the statement
! if(alias!=null && alias.Length > 0)
return StringHelper.Prefix(cols, Alias(alias, tableIndex) + StringHelper.Dot);
else
Index: AbstractEntityPersister.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Persister/AbstractEntityPersister.cs,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** AbstractEntityPersister.cs 10 Sep 2004 12:21:21 -0000 1.25
--- AbstractEntityPersister.cs 21 Sep 2004 09:58:24 -0000 1.26
***************
*** 781,785 ****
protected bool HasWhere
{
! get { return (sqlWhereString!=null && sqlWhereString!=String.Empty); }
}
--- 781,785 ----
protected bool HasWhere
{
! get { return (sqlWhereString!=null && sqlWhereString.Length > 0); }
}
Index: EntityPersister.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Persister/EntityPersister.cs,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -d -r1.29 -r1.30
*** EntityPersister.cs 15 Sep 2004 13:19:44 -0000 1.29
--- EntityPersister.cs 21 Sep 2004 09:58:24 -0000 1.30
***************
*** 594,598 ****
// add any special text that is contained in the forUpdateFragment
! if(forUpdateFragment!=null && forUpdateFragment!=String.Empty)
{
SqlStringBuilder sqlBuilder = new SqlStringBuilder(forUpdateSqlString);
--- 594,598 ----
// add any special text that is contained in the forUpdateFragment
! if(forUpdateFragment!=null && forUpdateFragment.Length > 0)
{
SqlStringBuilder sqlBuilder = new SqlStringBuilder(forUpdateSqlString);
***************
*** 1168,1172 ****
// make sure an Alias was actually passed into the statement
! if(name!=null && name!=String.Empty)
{
return StringHelper.Prefix(cols, name + StringHelper.Dot);
--- 1168,1172 ----
// make sure an Alias was actually passed into the statement
! if(name!=null && name.Length > 0)
{
return StringHelper.Prefix(cols, name + StringHelper.Dot);
|