mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-02 16:22:40 -06:00
git-svn-id: svn://ultimatepp.org/upp/trunk@513 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
f071c48d1c
commit
bf481d6043
2 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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))); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue