Open wyriwyg opened 3 years ago
This issue was originally posted in Achilles: https://github.com/OHDSI/Achilles/issues/609
DROP INDEX IF EXISTS is newer syntax supported by SQL Server, but not other platforms, and is not currently supported by SqlRender.
We can certainly add this new syntax to OHDSI SQL. Could you help by figuring out the equivalent SQL in the other supported dialects (that do support deleting indices if they exist)? For example, DROP INDEX IF EXISTS
does exist (using exactly the same syntax) in Postgres.
@schuemie Thanks, Martijn. Yes, will do.
Achilles is using an old syntax for "drop index", which does not work well in certain cases. Here is the error message produced by this drop index statement:
This syntax is not working well and it has as also described by the official DROP INDEX documentation:
Hope this can be fixed soon.