Mercurial > hg > orthanc
diff OrthancServer/Sources/Search/ISqlLookupFormatter.h @ 4817:b8fcd331b4b3
added ISqlLookupFormatter::IsEscapeBrackets()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 25 Nov 2021 13:09:15 +0100 |
parents | d9473bd5ed43 |
children | 70d2a97ca8cb 7053502fbf97 |
line wrap: on
line diff
--- a/OrthancServer/Sources/Search/ISqlLookupFormatter.h Wed Nov 24 18:03:35 2021 +0100 +++ b/OrthancServer/Sources/Search/ISqlLookupFormatter.h Thu Nov 25 13:09:15 2021 +0100 @@ -60,6 +60,13 @@ virtual std::string FormatWildcardEscape() = 0; + /** + * Whether to escape '[' and ']', which is only needed for + * MSSQL. New in Orthanc 1.9.8, from the following changeset: + * https://hg.orthanc-server.com/orthanc-databases/rev/389c037387ea + **/ + virtual bool IsEscapeBrackets() const = 0; + static void Apply(std::string& sql, ISqlLookupFormatter& formatter, const std::vector<DatabaseConstraint>& lookup,