Skip to content

Commit f0cb7fe

Browse files
author
Paul M. Jones
committed
update changes for release
1 parent 3860588 commit f0cb7fe

File tree

1 file changed

+35
-16
lines changed

1 file changed

+35
-16
lines changed

CHANGES.md

Lines changed: 35 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,39 @@
1-
@@@WRITE MAILING LIST MESSAGE HERE
2-
3-
- REF: Extract rebuilding of condition and binding sequential values
4-
- FIX: Allow binding of values as part of join() methods. fixes #27
5-
- NEW: Method Select::addTableRef(), still need to test it
6-
- FIX: Fixes #38
7-
- Merge branch 'aliastracking' of github.com:auraphp/Aura.SqlQuery into aliastracking
8-
- REF: Extract statement-building to AbstractQuery::getStatement() method. fixes #30
1+
This release has several new features.
2+
3+
1. The various `join()` methods now have an extra `$bind` param that allows you to bind values to ?-placeholders in the condition, just as with `where()` and `having()`.
4+
5+
2. The _Select_ class now tracks table references internally, and will throw an exception if you try to use the same table name or alias more than once.
6+
7+
3. The method `getStatement()` has been added to all queries, to allow you to get the text of the statement being built. Among other things, this is to avoid exception-related blowups related to PHP's string casting.
8+
9+
4. When binding a value to a sequential placeholder in `where()`, `having()`, etc, the _Select_ class now examind the value to see if it is a query object. If so, it converts the object to a string and replaces the ?-placeholder inline with the string instead of attempting to bind it proper. It also binds the existing sequential placholder values into the current _Select_ in a non-conflicting fashion. (Previously, no binding from the sub-select took place at all.)
10+
11+
5. In `fromSubSelect()` and `joinSubSelect()`, the _Select_ class now binds the sub-select object sequential values to the current _Select_ in a non-conflicting fashion. (Previously, no binding from the sub-select took place at all.)
12+
13+
The change log follows:
14+
15+
- REF: Extract rebuilding of condition and binding sequential values.
16+
17+
- FIX: Allow binding of values as part of join() methods. Fixes #27.
18+
19+
- NEW: Method Select::addTableRef(), to track table references and prevent double-use of aliases. Fixes #38.
20+
21+
- REF: Extract statement-building to AbstractQuery::getStatement() method. Fixes #30.
22+
923
- FIX: #47, if value for sequential placeholder is a Query, place it as a string inline
24+
1025
- ADD: Sequential-placeholder prefixing
26+
1127
- ADD: bind values from sub-selects, and modify indenting
28+
1229
- ADD: QueryFactory now sets the sequntial bind prefix
13-
- FIX: Remove all line endings from queries to be sure tests will pass on windows and mac. Merge pull request #53 from ksimka/fix-tests-remove-line-endings. Fixed tests for windows
14-
- Merge pull request #50 from auraphp/bindonjoin. Allow binding of values as part of join() methods
15-
- Merge pull request #51 from auraphp/aliastracking. Add table-reference tracking to disallow duplicate references
16-
- Merge pull request #52 from auraphp/bindsubselect. Bind Values From Sub-Selects
17-
18-
- DOC: Readme updates
19-
- DOC: Add CONTRIBUTING.md file.
20-
- DOC: Update license years
30+
31+
- FIX: Fix line endings in queries to be sure tests will pass on windows and mac. Merge pull request #53 from ksimka/fix-tests-remove-line-endings: Fixed tests for windows.
32+
33+
- Merge pull request #50 from auraphp/bindonjoin: Allow binding of values as part of join() methods.
34+
35+
- Merge pull request #51 from auraphp/aliastracking: Add table-reference tracking to disallow duplicate references.
36+
37+
- Merge pull request #52 from auraphp/bindsubselect. Bind Values From Sub-Selects.
38+
39+
- DOC: Update documentation and support files.

0 commit comments

Comments
 (0)