diff --git a/uppsrc/Sql/SqlCase.cpp b/uppsrc/Sql/SqlCase.cpp index d682dcc11..abef5c93a 100644 --- a/uppsrc/Sql/SqlCase.cpp +++ b/uppsrc/Sql/SqlCase.cpp @@ -308,6 +308,11 @@ String SqlCompile(byte dialect, const String& s) return b; } +String SqlCompile(const String& s) +{ + return SqlCompile(SQL.GetDialect(), s); +} + String SqlFormat(int x) { if(IsNull(x)) return "NULL"; diff --git a/uppsrc/Sql/Sqlexp.h b/uppsrc/Sql/Sqlexp.h index 99e9af296..eb3cde3fd 100644 --- a/uppsrc/Sql/Sqlexp.h +++ b/uppsrc/Sql/Sqlexp.h @@ -89,6 +89,7 @@ public: }; String SqlCompile(byte dialect, const String& s); +String SqlCompile(const String& s); String SqlFormat(int x); String SqlFormat(double x);