Migrate SND to PostgreSQL#1112
Conversation
…te pointless CREATE/ALTER/DROP combinations, etc.
|
Here's a summary of every translation decision that Claude made when converting the SQL Server SND script to PostgreSQL: SQL Server → PostgreSQL Translation Notes Type mappings ┌───────────────────────────────────────────────────┬─────────────────────────────────────────────┐ Syntax changes
Functions (fGetSuperPkg, fGetProjectItems)
Function fGetAllSuperPkgs
Trigger (ti_after_events)
|
labkey-martyp
left a comment
There was a problem hiding this comment.
Looks good. As discussed we'll loop back on fGetProjectItems and fGetSuperPkg on PG in future testing/PR.
| var sql = new SQLFragment("SELECT CategoryId, Description FROM snd.PkgCategories WHERE Active=1 AND Container=").appendValue(getContainer()) | ||
| .append(" AND lower(description) = lower(").appendValue(name).append(")"); | ||
| var sql = new SQLFragment("SELECT CategoryId, Description FROM snd.PkgCategories WHERE Active = ? AND Container = ?") | ||
| .add(true) |
There was a problem hiding this comment.
I'm assuming jdbc will convert this boolean value appropriately to the underlying database
There was a problem hiding this comment.
Yes, that's one (of many) benefit of using parameters
Rationale
We want the SND module to support PostgreSQL