-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(QueryBuilder): Correctly format RETURNING clauses
Specifically when using Quick, column formatters could return a fully qualified column. When using a column in a RETURNING clause, the column should never be fully qualified. It is always the result of a query inserting into or updating a specific table. This fix uses only the last item in a dot-delimited list as the column name after formatting.
- Loading branch information
Showing
7 changed files
with
78 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,62 @@ | ||
{ | ||
"name":"qb", | ||
"version":"7.9.1", | ||
"author":"Eric Peterson", | ||
"homepage":"https://github.com/coldbox-modules/qb", | ||
"documentation":"https://github.com/coldbox-modules/qb", | ||
"location":"forgeboxStorage", | ||
"scripts":{ | ||
"generateAPIDocs":"rm .tmp --recurse --force && docbox generate mapping=qb excludes=test|ModuleConfig strategy-outputDir=.tmp/apidocs strategy-projectTitle=qb", | ||
"commitAPIDocs":"run-script generateAPIDocs && !git add docs/apidocs/* && !git commit -m 'Updated API Docs'", | ||
"format":"cfformat run models/**/*.cfc,tests/resources/**/*.cfc,tests/specs/**/*.cfc --overwrite", | ||
"format:check":"cfformat check models/**/*.cfc,tests/resources/**/*.cfc,tests/specs/**/*.cfc" | ||
"name": "qb", | ||
"version": "7.9.1", | ||
"author": "Eric Peterson", | ||
"homepage": "https://github.com/coldbox-modules/qb", | ||
"documentation": "https://github.com/coldbox-modules/qb", | ||
"location": "forgeboxStorage", | ||
"scripts": { | ||
"generateAPIDocs": "rm .tmp --recurse --force && docbox generate mapping=qb excludes=test|ModuleConfig strategy-outputDir=.tmp/apidocs strategy-projectTitle=qb", | ||
"commitAPIDocs": "run-script generateAPIDocs && !git add docs/apidocs/* && !git commit -m 'Updated API Docs'", | ||
"format": "cfformat run models/**/*.cfc,tests/resources/**/*.cfc,tests/specs/**/*.cfc --overwrite", | ||
"format:check": "cfformat check models/**/*.cfc,tests/resources/**/*.cfc,tests/specs/**/*.cfc" | ||
}, | ||
"repository":{ | ||
"type":"git", | ||
"URL":"https://github.com/coldbox-modules/qb" | ||
"repository": { | ||
"type": "git", | ||
"URL": "https://github.com/coldbox-modules/qb" | ||
}, | ||
"bugs":"https://github.com/coldbox-modules/qb/issues", | ||
"slug":"qb", | ||
"shortDescription":"A query builder for the rest of us", | ||
"type":"modules", | ||
"keywords":[ | ||
"bugs": "https://github.com/coldbox-modules/qb/issues", | ||
"slug": "qb", | ||
"shortDescription": "A query builder for the rest of us", | ||
"type": "modules", | ||
"keywords": [ | ||
"ORM", | ||
"query", | ||
"SQL" | ||
], | ||
"private":false, | ||
"projectURL":"https://github.com/coldbox-modules/qb", | ||
"license":[ | ||
"private": false, | ||
"projectURL": "https://github.com/coldbox-modules/qb", | ||
"license": [ | ||
{ | ||
"type":"MIT", | ||
"URL":"https://github.com/coldbox-modules/qb/LICENSE" | ||
"type": "MIT", | ||
"URL": "https://github.com/coldbox-modules/qb/LICENSE" | ||
} | ||
], | ||
"dependencies":{ | ||
"cbpaginator":"^2.0.0" | ||
"dependencies": { | ||
"cbpaginator": "^2.0.0" | ||
}, | ||
"devDependencies":{ | ||
"testbox":"^3.0.0" | ||
"devDependencies": { | ||
"testbox": "^3.0.0" | ||
}, | ||
"installPaths":{ | ||
"testbox":"testbox/", | ||
"cbpaginator":"modules/cbpaginator/" | ||
"installPaths": { | ||
"testbox": "testbox/", | ||
"cbpaginator": "modules/cbpaginator/" | ||
}, | ||
"ignore":[ | ||
"ignore": [ | ||
"**/.*", | ||
"test", | ||
"tests", | ||
"docs/**/*.*", | ||
"server.json" | ||
], | ||
"testbox":{ | ||
"runner":"http://localhost:7777/tests/runner.cfm", | ||
"verbose":false | ||
"testbox": { | ||
"runner": "http://localhost:7777/tests/runner.cfm", | ||
"verbose": false | ||
}, | ||
"githooks": { | ||
"preCommit": [ | ||
"cfformat run `!git diff --name-only --staged` --overwrite", | ||
"!git add `git diff --name-only --staged`" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters