Skip to content

Commit

Permalink
Merge pull request cronicle-edge#110 from rrindels/patch-1
Browse files Browse the repository at this point in the history
Update SQL.js to fix head operations for pg engine.
  • Loading branch information
mikeTWC1984 authored May 1, 2024
2 parents b89b35f + 841636c commit b359566
Showing 1 changed file with 7 additions and 1 deletion.
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

0 comments on commit b359566

Please sign in to comment.