956 Commits

Author SHA1 Message Date
wubzz
2f44a48fa8 BatchInsert remake proposal. Fixes #1391 2016-05-09 19:01:00 +02:00
wubzz
8a303f1a96 Merge pull request #1342 from h0vhannes/mssql-conn-urls
Correct connection URL parsing for MSSQL
2016-04-29 12:32:01 +02:00
Wolfgang Faust
a7f609aa4f mssql dialect: Fix integration tests that check for quoted wrappers.
PR #1289 made it quote the index/constraint names, but did not update the tests accordingly.
2016-04-21 20:56:41 +00:00
Hovhannes Kuloghlyan
8e41a332b9 Add parse URL connection string tests for MSSQL 2016-04-12 03:59:31 +04:00
wubzz
d3b1fcc4b8 Fixed test, forgot ES6 is not supported in the test suite. 2016-04-01 23:39:04 +02:00
wubzz
0b45356456 .renameColumn should not drop defaultValue or nullable state. Currently this happens for mysql. Fixes #933 2016-04-01 23:37:12 +02:00
wubzz
34d9a7650e Merge pull request #1269 from wubzz/bugfix/fix_valuesForUndefined_actual_query
Fix valuesForUndefined actual query being executed. Fixes #1268
2016-03-27 17:28:41 +02:00
wubzz
3a925c30e1 Ensure events are triggered on the builder as well as the client. 2016-03-24 19:12:29 +01:00
Ryan Fink
dc92ff2b71 Merged upstream 2016-03-24 09:22:07 -04:00
Max Claus Nunes
8d6264e96b wrap index names 2016-03-16 21:52:51 -03:00
harriha
0008de1587 Add basic unit tests for migrate 2016-03-16 22:29:17 +02:00
Mikael Lepistö
cb1bea1d57 Merge pull request #1279 from wubzz/update_bluebird_dependency
Update bluebird dependency 2.9.24 -> 3.3.4. Fixes #1216
2016-03-16 20:04:58 +02:00
Joe Frambach
cf8222d9eb Add inherits to postgres. Updated dialect-specific methods. 2016-03-15 16:40:49 -07:00
Mikael Lepistö
2f531190bb Merge pull request #1109 from kmikael/timestamps-now
Add option to timestamps to be not null and default to the current timestamp
2016-03-15 23:09:16 +02:00
wubzz
a152d92408 Only call prepBindings when a client is set on the instance of Raw. Also add a test so this does not break in the future. 2016-03-15 21:47:59 +01:00
wubzz
f286da2796 Preserve original bindings at all times. Move prepBindings calls to toSQL() instead. Enforce 'bindings' to always be present in .toSQL() resultset. 2016-03-15 21:47:59 +01:00
wubzz
02281ef91b Fix valuesForUndefined actual query being executed. Fixes #1268 2016-03-15 21:47:58 +01:00
wubzz
6621e3b0ce Fix promisify in knexfile.js 2016-03-15 21:14:17 +01:00
wubzz
c79453ac3a Change _.pluck -> _.map in all tests 2016-03-15 18:12:40 +01:00
wubzz
9d2514df3f Fix logger.js _.contains -> _.includes 2016-03-15 18:12:38 +01:00
wubzz
f37824a11e Fix indentation? 2016-03-15 18:12:36 +01:00
wubzz
1d27fb8550 Update lodash from 3.7.0 -> 4.6.0 2016-03-15 18:11:13 +01:00
wubzz
faca736ed5 Fix jshint issues 2016-03-11 23:32:43 +01:00
wubzz
2738697f42 Add a TypeError when failing to supply a callback function to .createTable and .table. 2016-03-11 23:22:30 +01:00
wubzz
72a3617e2b Updated the tests for named bindings to accomodate for the decission not to process undefined values. 2016-03-11 20:42:29 +01:00
wubzz
b614a2f81c Update regex for named bindings 2016-03-11 20:41:19 +01:00
Jurko Gospodnetić
19477f6832 merge changes from master 2016-03-09 07:11:17 +01:00
wubzz
4a0456404a Merge pull request #1260 from wubzz/bugfix/add_timeout_to_raw_and_fix_test
Add .timeout to raw, and attempt to fix the timeout test
2016-03-08 13:54:54 +01:00
wubzz
3bf1256bf8 Add .timeout to raw, and attempt to fix the timeout test 2016-03-08 13:32:55 +01:00
wubzz
7cc827f6cf Merge pull request #1258 from jurko-gospodnetic/code-cleanup
Code cleanup (trimmed trailing spaces & removed tabs)
2016-03-08 13:13:48 +01:00
wubzz
4ef7759da5 Merge pull request #1250 from ngoctranfire/bugfix/fixes_inTable_undefined_fails_silently_#1220
Fixes inTable(undefined) silently fails bug from Issue #1220
2016-03-08 12:36:34 +01:00
Ngoc Tran
ac294c5d47 Renamed table name to more accurately reflect test. 2016-03-08 01:31:22 -08:00
Ngoc Tran
755ad78df4 Fixes #1220 bug to now throw TypeError if parameter passed into inTable() is not typeof === 'string'. 2016-03-08 01:28:58 -08:00
Jurko Gospodnetić
16a076c1a0 trim trailing spaces
Only left alone ones in `test/tape/transactions.js` which would just
cause unnecessary conflicts and get cleaned up by separate pull
request #1257 anyway.
2016-03-08 08:44:01 +01:00
Jurko Gospodnetić
96bd74e0c1 remove now redundant test case
Already covered directly by the `transaction rollback on error throw`
test case.
2016-03-08 08:05:17 +01:00
Jurko Gospodnetić
3225ab45bc test transaction callback throwing an error 2016-03-08 07:50:54 +01:00
Jurko Gospodnetić
3d8131b5eb add missing tape assertion descriptions
The default `should be equal` description is not of much use in tracking
down failed assertions.
2016-03-08 07:50:20 +01:00
Jurko Gospodnetić
85b780d4fa sync test comments about oracle & mssql not reporting BEGIN/ROLLBACK as queries 2016-03-08 07:50:19 +01:00
Rod Calumpong
ab003ac7c9 Allow returning to be used with oracle update 2016-03-07 16:35:04 -08:00
wubzz
a5ece5e2df Merge pull request #1226 from jurko-gospodnetic/fix-nested-transactions
Fixed nested transactions
2016-03-07 14:54:04 +01:00
Ngoc Tran
60f8062cfe Fixes #1220, https://github.com/tgriesser/knex/issues/1220, inTable(undefined) fails silently error by making sure it throws an error if the user passes an undefined table name. 2016-03-07 03:33:17 -08:00
wubzz
93d018a817 Change assertion 2016-02-26 20:32:34 +01:00
wubzz
b6860b6b37 Add 'query-response to documentation, and add some assertions to the test. 2016-02-26 20:01:18 +01:00
wubzz
840d2d1299 Add 'query-response' event. Fixes #1203 2016-02-26 19:51:35 +01:00
Jurko Gospodnetić
675c684d3b test sibling nested transactions 2016-02-25 12:32:09 +01:00
Rhys van der Waerden
a42766afb1 Merge pull request #1164 from wubzz/bugfix/orWhere_with_object_should_be_and
Bugfix/or where with object should be and
2016-02-18 18:41:26 +11:00
wubzz
942877c0fe OrWhere({..}) Treat as 'AND', not 'OR'. Fixes #1118 2016-02-18 06:28:14 +01:00
Mikael Lepistö
9f270f069a Merge pull request #1201 from wubzz/feature/add_timeout_to_querybuilder
Add .timeout(ms) to QueryBuilder
2016-02-17 10:45:54 +02:00
Mikael Lepistö
96aa4d8d91 Merge pull request #1147 from alexrsagen/master
Add collate for columns (MySQL)
2016-02-15 20:09:43 +02:00
wubzz
6dfe653c42 Add .timeout() fn to QueryBuilder. 2016-02-15 17:06:08 +01:00