- 18 Sep, 2013 3 commits
-
-
Allow include when the same table is referenced multiple times using hasMany
Daniel Durante committed -
Daniel Durante committed
-
Make ordering consistent across all dialects
Daniel Durante committed
-
- 17 Sep, 2013 11 commits
-
-
Jan Aagaard Meier committed
-
Jan Aagaard Meier committed
-
Jan Aagaard Meier committed
-
Updated depedencies
Daniel Durante committed -
Daniel Durante committed
-
Jan Aagaard Meier committed
-
Jan Aagaard Meier committed
-
fixes a TypeError that occurs if a 'rawSelect' query does not return a row (data is null). I discovered the problem trying perform a `Model.count()` in combination with a `group` option on a MySQL database,MySQL does not return a record for query such as this: ```sql SELECT count(*) AS `count` FROM `SomeTable` WHERE `category_id` = 1 GROUP BY `my_grouping_field` ``` In Sequelize the previous query would be done like so: ```js SomeTable.count({ group: 'my_grouping_field', where: { category_id: 1 } }); ``` assuming the `category_id` WHERE clause returns zero records you end up with the following TypeError: ```bash TypeError: Cannot read property 'count' of null at null.<anonymous> (some-project/node_modules/sequelize/lib/query-interface.js:314:28) at EventEmitter.emit (events.js:117:20) at null.<anonymous> (some-project/node_modules/sequelize/lib/dialects/mysql/query.js:32:14) at Query.Sequence.end (some-project/node_modules/mysql/lib/protocol/sequences/Sequence.js:66:24) at Query._handleFinalResultPacket (some-project/node_modules/mysql/lib/protocol/sequences/Query.js:139:8) at Query.EofPacket (some-project/node_modules/mysql/lib/protocol/sequences/Query.js:123:8) at Protocol._parsePacket (some-project/node_modules/mysql/lib/protocol/Protocol.js:169:24) at Parser.write (some-project/node_modules/mysql/lib/protocol/Parser.js:62:12) at Protocol.write (some-project/node_modules/mysql/lib/protocol/Protocol.js:36:16) at write (_stream_readable.js:557:24) ```
Jochem Maas committed -
Jan Aagaard Meier committed
-
Jan Aagaard Meier committed
-
fix the bug `findAndCountAll` not working on postgresql.
Jan Aagaard Meier committed
-
- 15 Sep, 2013 1 commit
-
-
wenyuxiang committed
-
- 13 Sep, 2013 7 commits
-
-
wenyuxiang committed
-
wenyuxiang committed
-
wenyuxiang committed
-
Jan Aagaard Meier committed
-
Fix (global) db leakage, by making db local.
Jan Aagaard Meier committed -
Jan Aagaard Meier committed
-
- 12 Sep, 2013 2 commits
-
-
Thanks to mickhansen for the fix.
Ming-Wei Shih committed -
copy `where` array, avoid changed by internal.
hackwaly committed
-
- 07 Sep, 2013 12 commits
-
-
DAOFactory.update() will now skip validations for columns that we're not...
Jan Aagaard Meier committed -
Daniel Durante committed
-
Daniel Durante committed
-
tests & bugfixes for DAO-Factory.update and array of values in where clause
Daniel Durante committed -
Daniel Durante committed
-
postgres requires empty array to be explicitly cast on update
Daniel Durante committed -
Daniel Durante committed
-
Add support for typed arrays in SqlString.escape and SqlString.arrayToList
Daniel Durante committed -
Cleaned up the postgres connector-manager/query code, updated node-postg...
Daniel Durante committed -
…ndency, and made sure pg.Client ended correctly on drain to prevent leaks for non pooling connections.
Daniel Durante committed -
Jan Scheurer committed
-
Jan Scheurer committed
-
- 06 Sep, 2013 3 commits
-
-
Jan Scheurer committed
-
Jan Scheurer committed
-
Rob Raux committed
-
- 05 Sep, 2013 1 commit
-
-
Rob Raux committed
-