Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SQL.js to fix head operations for pg engine. #110

Merged
merged 3 commits into from
May 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion engines/SQL.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,13 @@ module.exports = class SQLEngine extends Component {
// some column name aliases to adjust to default DB case
let CREATED = 'created'
let UPDATED = 'updated'


// Postgres requires quoted "V" field since the schema was created with the quoted "V" field.

if (this.client === 'pg'){
this.getBlobSizefn = 'length("V")'
}

if (this.client === 'mssql') {
this.getBlobSizeFn = 'len(V)'
this.mergeStmt = `
Expand Down