Tim Griesser
3a3cad9f88
Fix #1694
2016-10-09 14:33:51 -04:00
Tim Griesser
7069ce509e
Revert to generic pool ( #1665 )
2016-09-13 18:12:23 -04:00
Tim Griesser
3a5250d87d
Fix #1619
2016-09-13 09:56:53 -04:00
Tim Griesser
143e09ad35
Fix use of const in test suite for node 0.12
2016-09-13 09:50:28 -04:00
Tim Griesser
f5bad1ae54
Simplifying internal client structure
2016-09-13 08:15:58 -04:00
Tim Griesser
6fa485302b
Bluebird cleanup ( #1618 )
...
* Reference Bluebird directly, Remove deprecated .exec method
* Remove outdated bench scripts
* Remove old .jshintrc file
2016-08-09 17:23:07 -04:00
Nick Whiteley
f969d5236a
MSSQL columnInfo() had hard coded schema name ( #1585 )
...
* MSSQL columnInfo() had hard coded schema name
* Change let to const for columnInfo bindings array
2016-07-26 10:00:57 +02:00
statyan
6ecd8f3793
Fixed knex #1577 ( #1578 )
...
* Fixed knex #1577
Aslo corrected tests for primarykey
* Fix for installing from github
* Fix for installing from github
* Fix for installing from github
2016-07-20 11:22:17 +10:00
David Overcash
f5137f2d67
Remove failing test to verify theory.
2016-06-17 10:42:40 -07:00
David Overcash
a8cbbfc193
Add tests for __knexQueryUid and an additional test for the query event.
2016-06-17 09:53:54 -07:00
Mikael Lepistö
05a95c2b8b
Merge pull request #1445 from sandorfr/bugfix/mssql-bigint
...
add bigint detection and sets mssql req.input when appropriate
2016-05-30 00:17:38 +03:00
Cyprien Autexier
0e693dfdca
replace bigint unit test by integration tests
2016-05-29 18:16:32 +02:00
Byron Wong
2eecd7cf16
no native startsWith
2016-05-26 17:10:27 -07:00
Byron Wong
89302b2e92
"maria" instead of "mariasql"
2016-05-26 17:04:30 -07:00
Byron Wong
c0a45b58a2
address wubzz's comments, improvements
...
* add timeout to acquiring connection inside `cancelQuery` + test
* use `KILL QUERY :id` instead of `KILL :id` so the connection is preserved
2016-05-26 16:56:15 -07:00
Byron Wong
ea5cbec4e7
Kill queries after timeout for MySQL
2016-05-26 12:00:47 -07:00
wubzz
9118e05f23
Merge pull request #1431 from wubzz/bugfix/inconsistency_of_primary_and_dropPrimary
...
Ensure .primary() and .dropPrimary() are the same across all dialects.
2016-05-20 15:34:46 +02:00
wubzz
c2c31ce859
Change default constraintName in .primary() to match docs and .dropPrimary()
2016-05-19 22:13:09 +02:00
wubzz
5a6ab64d06
Ensure .primary() and .dropPrimary() are the same across all dialects.
2016-05-19 21:30:17 +02:00
Mikael Lepistö
69e33c7f64
Pass valueForUndefined also to transacting client. Fixes #1423
2016-05-19 18:53:29 +03:00
Alex Whitman
202ddddddb
Use calling transaction with batchInsert
2016-05-19 11:07:29 +01:00
Rhys van der Waerden
2e7650a8e4
Remove JSHint comments
2016-05-18 20:07:33 +10:00
Mikael Lepistö
c935b583cb
Insert tests were ran before DB was initialized (schema / migrate / seed).
2016-05-12 10:43:33 +03:00
Mikael Lepistö
9fab58c2b2
Evaluated multi insert default for undefined already in query compiler
2016-05-12 10:24:42 +03:00
wubzz
59d9ff89cd
Remove mysql from assertions
2016-05-11 17:49:18 +02:00
wubzz
6bd4b8ac32
Only assert returning values on supported dialects.
2016-05-11 17:31:33 +02:00
wubzz
2f44a48fa8
BatchInsert remake proposal. Fixes #1391
2016-05-09 19:01:00 +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
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
Max Claus Nunes
8d6264e96b
wrap index names
2016-03-16 21:52:51 -03: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
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
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ć
85b780d4fa
sync test comments about oracle & mssql not reporting BEGIN/ROLLBACK as queries
2016-03-08 07:50:19 +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