Commit Graph

1645 Commits

Author SHA1 Message Date
macklin-10x 5b3e40ac12 Rename expr type to make it public. (#2604) 2019-10-17 23:44:34 +08:00
aimuz a8a530db5a SetColumn No fields ignored were processed (#2579) 2019-10-17 23:38:37 +08:00
lotus.wu b99f2d8270 1. suport date time '2070-03-30 00:00:00',timestamp can't support large date time. (#1823) 2019-10-17 23:36:06 +08:00
okhowang 120d39b4d6 use show statement in mysql dialect for compatibility for tencent tdsql (#2643) 2019-10-17 23:22:13 +08:00
Lilit 7729627ff6 Fix logging callbacks (#2652) 2019-10-17 23:12:01 +08:00
Devin Samarin d2007b3c82 Describe name of field for invalid SQL datatypes (#2689) 2019-10-17 22:56:19 +08:00
Alex Stockwell 820b5f244a MSSQL Create() fix: Add LastInsertIDReturningSuffix to dialect (#2690)
* MSSQL Create() fix: Add LastInsertIDReturningSuffix to dialect

Per https://github.com/denisenkom/go-mssqldb/issues/355

* MSSQL Create() fix: Added OUTPUT query to Create() builder
2019-10-17 22:54:11 +08:00
Emir Beganović 1bca5dbdd9
Merge pull request #2691 from ken8203/bugfix/fix-typo-of-example-code
Fix typo of example code
2019-10-08 12:04:52 +02:00
Jay Chung e5d0267c0b Fix typo of example code 2019-10-05 12:12:47 +08:00
Emir Beganović 81c17a7e25 Revert "Fix #2517 : Check for incomplete parentheses to prevent SQL injection." (#2674)
This reverts commit e3cc5ea4d4.
2019-09-25 19:22:43 +08:00
Christian Muehlhaeuser 0c98e7d712 Fixed import formatting to match goimports (#2568) 2019-09-12 22:17:31 +08:00
Shunsuke Otani 13f19a5036 Uncapitalize error strings (#2533) 2019-09-12 22:16:52 +08:00
Shunsuke Otani d5cafb5db1 Fix CallbackProcessor.Get() for removed or replaced same name callback (#2548) 2019-09-12 22:16:05 +08:00
Steve Ellis b954854116 bump mattn/go-sqlite3 to v1.11.0 (#2565) 2019-09-12 22:13:59 +08:00
haoc7 2a3ab99a08 fix insert timezero 0001-01-01 (#2635) 2019-09-02 09:44:50 +08:00
Emir Beganović 836fb2c19d
Fix #2517 : Check for incomplete parentheses to prevent SQL inj… (#2519)
Fix #2517 : Check for incomplete parentheses to prevent SQL injection.
2019-06-30 11:50:19 +04:00
Herpiko Dwi Aguno 8215224f7b
Merge branch 'master' into 2517 2019-06-25 16:24:36 +07:00
Herpiko Dwi Aguno e3cc5ea4d4 Fix #2517 : Check for incomplete parentheses to prevent SQL injection. 2019-06-25 16:21:45 +07:00
Emir Beganović a6b790ffd0
Fix function name of comment (#2522)
Fix function name of comment
2019-06-25 10:50:53 +02:00
zaneli beb591e642 Fix function name of comment 2019-06-24 20:38:13 +09:00
Jinzhu 01b6601142 Update go.mod 2019-06-13 14:42:55 +08:00
Jinzhu 5acd5e20e6 Remove Debug mode from test code 2019-06-13 12:20:11 +08:00
Jinzhu 835ca6ca93 Update wercker.yml to include mysql 8 2019-06-13 11:48:31 +08:00
Jinzhu ff430cad49 Update tests 2019-06-13 11:21:13 +08:00
Jinzhu 321c636b9d Merge branch 'Momo733-master' 2019-06-11 17:32:55 +08:00
Momo733 781a818390 fix save err when specify a table name
s.New() will clear all search conditions and search value,when I use Table() to set a table name. Then FirstOrCreate() will use struct name as my database table name,so It doesn't work.
2019-06-11 17:30:29 +08:00
Jinzhu 153ce22c99 Test Save with specfied table name 2019-06-11 17:30:14 +08:00
Ruben de Vries c44c6027fb add an override on the DB instance instead of using the global NowFunc. (#2142) 2019-06-11 12:22:21 +08:00
Tyler Stillwater fec06da6a3 Add BeginTx for parity with sql.DB.BeginTx (#2227) 2019-06-11 12:22:21 +08:00
Hylke Visser cf9b85ed90 Don't set primary key's HasDefaultValue to true (#2127) 2019-06-11 12:22:21 +08:00
Adam S Levy f301f86e29 Add RollbackUnlessCommitted() (#2126) 2019-06-11 12:22:21 +08:00
John Barker 280dd011a1 Don't AddError for Rollback on ErrTxDone (#2434) 2019-06-11 12:22:20 +08:00
Miguel Moll 9127f7d86e Handle error when beginning transaction (#2489) 2019-06-11 12:22:20 +08:00
Ruben de Vries 712c465560 add an override on the DB instance instead of using the global NowFunc. (#2142) 2019-06-10 20:45:42 +08:00
Tyler Stillwater af01854d3e Add BeginTx for parity with sql.DB.BeginTx (#2227) 2019-06-10 20:33:20 +08:00
Hylke Visser ac78f05986 Don't set primary key's HasDefaultValue to true (#2127) 2019-06-10 20:24:05 +08:00
Adam S Levy 44d3060254 Add RollbackUnlessCommitted() (#2126) 2019-06-10 20:19:39 +08:00
John Barker ea12400190 Don't AddError for Rollback on ErrTxDone (#2434) 2019-06-10 20:14:44 +08:00
Miguel Moll 62197e576d Handle error when beginning transaction (#2489) 2019-06-10 20:12:13 +08:00
Emir Beganović 962ba3d7ae
Merge branch 'master' into master 2019-05-08 11:13:47 +04:00
Emir Beganović b7156195f7
Pass logger into Callback{} so that logs are printed consistently (#2435)
Pass logger into Callback{} so that logs are printed consistently
2019-05-08 11:12:19 +04:00
Emir Beganović 746f522518
Merge branch 'master' into feature/use_standard_logger_in_callback_helpers 2019-05-08 10:50:06 +04:00
Emir Beganović 985c3a174e
Remove unused import 2019-05-08 10:49:33 +04:00
Emir Beganović 6c53214a29
Use Print method 2019-05-08 10:49:00 +04:00
Emir Beganović 451c3cca86
Fix drop table error with table options (#2447)
Fix drop table error with table options
2019-05-08 10:44:20 +04:00
Emir Beganović bb3c74467d
Update two more places 2019-05-08 10:26:49 +04:00
Emir Beganovic 9692c599ad Fix drop table error with table options 2019-05-08 10:23:31 +04:00
John Barker 8b127471f1 Pass logger into Callback{} so that logs are printed consistently 2019-05-07 10:42:20 -06:00
Emir Beganović 5c0f6716ad
Fixed nil error when first updates with struct (#2443)
Fixed nil error when first updates with struct
2019-05-05 13:29:28 +04:00
Emir Beganovic 394b3a1818 Fixed nil error when first updates with struct 2019-05-05 13:12:03 +04:00