SqlSelect::AsValue, SqlId::Of(const char *)

git-svn-id: svn://ultimatepp.org/upp/trunk@786 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2009-01-19 12:55:41 +00:00
parent 999e10e2a7
commit 435c8e13c4
2 changed files with 7 additions and 0 deletions

View file

@ -7,6 +7,11 @@ SqlCol SqlCol::As(const char *as) const
return name + SqlCase(MSSQL | PGSQL, " as ")(" ") + as;
}
SqlCol SqlId::Of(const char *of) const
{
return of + ('.' + ToString());
}
SqlCol SqlId::Of(SqlId id) const
{
return id.IsNull() ? ToString() : id.ToString() + '.' + ToString();