git-svn-id: svn://ultimatepp.org/upp/trunk@513 f0d560ea-af0d-0410-9eb7-867de7ffcac7

This commit is contained in:
rylek 2008-10-09 18:41:31 +00:00
parent f071c48d1c
commit bf481d6043
2 changed files with 6 additions and 0 deletions

View file

@ -577,6 +577,11 @@ SqlVal SchemaAlias(const SqlVal& table)
return SqlCol(~SchemaTable(table) + SqlCase(MSSQL, " as ")(" ") + ~table);
}
SqlId SchemaId(SqlId table_id)
{
return SqlId(SchemaTableName(~table_id) + SqlCase(MSSQL, " as ")(" ") + ~table_id);
}
VectorMap<String, SqlColumnInfo> Describe(const SqlVal& table, Sql& cursor)
{
VectorMap<String, SqlColumnInfo> map;

View file

@ -89,6 +89,7 @@ bool IsNotSchemaEmpty(const SqlVal& table, SqlId column, const
SqlVal Alias(const SqlVal& value, const SqlVal& alias);
SqlVal SchemaAlias(const SqlVal& table, const SqlVal& alias);
SqlVal SchemaAlias(const SqlVal& table);
SqlId SchemaId(SqlId table);
inline SqlInsert InsertSchema(SqlId table) { return SqlInsert(SqlId(SchemaTableName(~table))); }
inline SqlUpdate UpdateSchema(SqlId table) { return SqlUpdate(SqlId(SchemaTableName(~table))); }