From: Peter S. <sz...@us...> - 2004-04-15 13:21:32
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Sql In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14691/NHibernate/Sql Modified Files: Alias.cs Log Message: Still working on alias. Except for one testcase, everything looks ok. Index: Alias.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Sql/Alias.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Alias.cs 15 Apr 2004 11:36:36 -0000 1.4 --- Alias.cs 15 Apr 2004 13:21:18 -0000 1.5 *************** *** 27,30 **** --- 27,31 ---- public string ToAliasString(string sqlIdentifier, Dialect.Dialect dialect) { + return dialect.QuoteForAliasName(sqlIdentifier); char begin = sqlIdentifier[0]; int quoteType = Dialect.Dialect.Quote.IndexOf(begin); *************** *** 67,71 **** if(quoteType >= 0) { ! unquoted = sqlIdentifier.Substring(1, sqlIdentifier.Length - 1); } else --- 68,72 ---- if(quoteType >= 0) { ! unquoted = sqlIdentifier.Substring(1, sqlIdentifier.Length - 2); } else |