diff --git a/uppsrc/Sql/SqlVal.cpp b/uppsrc/Sql/SqlVal.cpp index cd1f0de1a..55a2a7781 100644 --- a/uppsrc/Sql/SqlVal.cpp +++ b/uppsrc/Sql/SqlVal.cpp @@ -12,6 +12,11 @@ SqlCol SqlId::Of(SqlId id) const return id.IsNull() ? ToString() : id.ToString() + '.' + ToString(); } +SqlId SqlId::operator[](const SqlId& id) const +{ + return id.IsNull() ? ToString() : ToString() + '.' + id.ToString(); +} + SqlId SqlId::As(const char *as) const { return id.IsNull() ? ToString() : ToString() + SqlCase(MSSQL | PGSQL, " as ")(" ") + as; diff --git a/uppsrc/Sql/Sqlexp.h b/uppsrc/Sql/Sqlexp.h index 445e30436..f692f4fac 100644 --- a/uppsrc/Sql/Sqlexp.h +++ b/uppsrc/Sql/Sqlexp.h @@ -106,8 +106,9 @@ public: SqlCol Of(SqlId id) const; SqlId As(const char *as) const; SqlId As(SqlId id) const { return As(~~id); } - SqlId operator [] (int i) const; + SqlId operator[](int i) const; SqlId operator&(const SqlId& s) const; + SqlId operator[](const SqlId& id) const; SqlId() {} SqlId(const char *s) : id(s) {}