Skip to content

Commit

Permalink
test(schema-compiler): Fix question mark test
Browse files Browse the repository at this point in the history
sqlstring skips replacing for multiple consecutive question marks
  • Loading branch information
mcheshkov committed Nov 11, 2024
1 parent 9482807 commit 0586b91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ describe('MSSqlUngrouped', () => {
longitude: { sql: \`longitude\` }
},
questionMark: {
sql: \`replace('some string question string???', 'string', 'with some ???')\`,
sql: \`replace('some string question string ? ? ? ???', 'string', 'with some ? ? ? ???')\`,
type: \`string\`
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ describe('SQL Generation', () => {
longitude: { sql: \`longitude\` }
},
questionMark: {
sql: \`replace('some string question string???', 'string', 'with some ???')\`,
sql: \`replace('some string question string ? ? ? ???', 'string', 'with some ? ? ? ???')\`,
type: \`string\`
}
}
Expand Down

0 comments on commit 0586b91

Please sign in to comment.