- 07 Sep, 2013 5 commits
-
-
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 2 commits
-
-
Jan Scheurer committed
-
Jan Scheurer committed
-
- 04 Sep, 2013 11 commits
-
-
Jan Aagaard Meier committed
-
Properly copy the options objects passed to find and findall
Daniel Durante committed -
Jan Aagaard Meier committed
-
Jan Aagaard Meier committed
-
Jan Aagaard Meier committed
-
Fixes a bug with .destroy() on a DAO record
Jan Aagaard Meier committed -
Daniel Durante committed
-
This only affected Postgres really, but when you did .find(), etc. and then .destroy() on the actual DAO rather than the DAOFactory, sometimes the QueryGenerator.deleteQuery() would have trouble finding the primary keys for that table. This provides additional info to Postgres' deleteQuery() function just in case. This commit adds a fourth argument to Postgres' QueryGenerator.deleteQuery() for declaring a DAOFactory.
Daniel Durante committed -
Daniel Durante committed
-
Fixes Postgres' ability to search within functions.
Jan Aagaard Meier committed -
This is a pure and simple fix for searching with a Postgres' array column type. This commit changes hashToWhereConditions by adding a second argument of sending the factory's details over and checking for column type if the hash/value/first argument is an array. For the actual search we just utilize a simple overlap && boolean search.
Daniel Durante committed
-
- 01 Sep, 2013 3 commits
-
-
Sascha Depold committed
-
Sascha Depold committed
-
Add Sequelize#model to fetch DAOFactory of previously defined model
Sascha Depold committed
-
- 31 Aug, 2013 4 commits
-
-
Joe Wilm committed
-
ENUM types will no longer break in Postgres
Sascha Depold committed -
Fix: Postgres connection issues
Sascha Depold committed
-
- 30 Aug, 2013 1 commit
-
-
Lemon committed
-
- 29 Aug, 2013 11 commits
-
-
Lemon committed
-
Lemon committed
-
Sascha Depold committed
-
Lemon committed
-
Lemon committed
-
Lemon committed
-
Lemon committed
-
Lemon committed
-
Plus cleaning up many-many join to be more understandable
Lemon committed -
Default was integer, which led to casting errors returning the incorrect data
Lemon committed -
Lemon committed
-
- 28 Aug, 2013 3 commits
-
-
…t when declaring tableName.
Daniel Durante committed -
Postgres will now add enum's values on .sync() if you were to add entires into the attribute's.value. It'll also add the enum type in the proper order. For example: ```js Table = sequelize.define... mood: { type: DataTypes.ENUM, values: ['happy', 'sad'] } // For some reason down the road you redefine the same table // ... mood: { type: DataTypes.ENUM, values: ['neutral', 'happy', 'sad', 'joyful'] } ``` Will result in the following SQL: ```sql ALTER TYPE "...enumTypeName..." ADD VALUE 'neutral' BEFORE 'happy'; ALTER TYPE "...enumTypeName..." ADD VALUE 'jouful' AFTER 'sad'; ``` - ```.drop()``` will now pass the options object through (optional) - Added Postgres.QueryGenerator.pgListEnums(tableName=null, attrName=null, options) which lists all of the ENUM types for Postgres, if you don't specify an attribute and tablename then Sequelize will list all of the Enums - Added Postgres.QueryGenerator.pgEnumAdd(tableName, attr, value, options) which will alter the enum type and add values - Added Postgres.QueryGenerator.pgEnumDrop(tableName, attr) which will drop the enum type - Postgres.QueryGenerator.pgEnum() will no longer try to drop the type unless {force: true} within the ```.sync()``` commands - Refactored ```QueryInterface.createTable()``` in order to allow Postgres to create enum types explicitly rather than from Postgres.```QueryGenerator.createTable()``` - Refactored QueryInterface.dropTable() -- same as ```createTable()``` changes .. also {force: true/force} will now set options.cascade - QueryInterface.dropAllTables() will now correctly add a quote identifier to table names for MySQL Closes https://github.com/sequelize/sequelize/issues/546
Daniel Durante committed -
Some users were experiencing problems with Postgres connections leaking when they didn't enable pooling. This commit should fix the problem. - In prototype.disconnect() we now properly call this.client.end with this.client.end.bind(this.client) (as shown in the node-postgres wiki). - We no longer check for readyForQuery on this.client as that value may not always be populated by node-postgres (possibly a bug on node-postgres). This should close https://github.com/sequelize/sequelize/issues/859
Daniel Durante committed
-