Jim Lambert
f2959c880e
rename to isOracle() so it is not public
2020-02-14 10:11:35 -05:00
Jim Lambert
89eb0d4da6
use uniq envvar STACKTRACE
2020-02-14 10:05:15 -05:00
Jim Lambert
170839dd6d
fix some stuff required for oci8 to work with oracle bits
2020-02-13 21:37:53 -05:00
Jim Lambert
5b26d4ba08
simplify IsOracle()
2020-02-12 14:44:34 -05:00
Jim Lambert
a8686f7106
refactor oracle specific test
2020-02-12 13:25:32 -05:00
Jim Lambert
503e1356e1
clean up oracle foreign key bits
2020-02-12 12:01:46 -05:00
Jim Lambert
69ee2a14f3
use case insensitive match on column name to support oracle
2020-02-12 10:39:25 -05:00
Jinzhu
5490a87fe9
Should use global NowFunc when trace SQL
2019-12-06 00:01:40 +08:00
zaneli
23f6840776
Add limit and offset parse error
2019-11-27 11:21:05 +09:00
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
Emir Beganović
81c17a7e25
Revert "Fix #2517 : Check for incomplete parentheses to prevent SQL injection." ( #2674 )
...
This reverts commit e3cc5ea4d403078a370e299629da56cd011b6583.
2019-09-25 19:22:43 +08:00
Herpiko Dwi Aguno
e3cc5ea4d4
Fix #2517 : Check for incomplete parentheses to prevent SQL injection.
2019-06-25 16:21:45 +07: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
Miguel Moll
62197e576d
Handle error when beginning transaction ( #2489 )
2019-06-10 20:12:13 +08:00
Emir Beganovic
9692c599ad
Fix drop table error with table options
2019-05-08 10:23:31 +04:00
Emir Beganovic
394b3a1818
Fixed nil error when first updates with struct
2019-05-05 13:12:03 +04:00
Dmitry Zenovich
483c2ef521
Merge branch 'master' into pluck
2019-04-30 17:28:56 +03:00
zaneli
09a868b381
Handle syntax to specify an index prefix length
2019-04-20 01:04:23 +09:00
Dmitry Zenovich
8d1e6bc0f8
remove old elements from the output parameter of Pluck()
2019-04-19 14:41:30 +03:00
Wendell Sun
26e8799a19
fix the case that using Having on Count
2019-03-11 21:16:50 +08:00
蜻蜓特派员
9f1a7f5351
optimize getColumnAsArray ( #2196 )
2019-01-02 21:32:08 +08:00
teresy
68f5d25d64
simplify cases of strings.Index with strings.Contains ( #2162 )
2018-11-03 21:56:27 +08:00
ch3rub1m
5be9bd3413
Rollback transaction when a panic happens in callback ( #2093 )
2018-09-14 15:53:49 +08:00
Eyal Posener
123d4f50ef
lock TagSettings structure when modified ( #1796 )
...
The map is modified in different places in the code which results in race conditions
on execution.
This commit locks the map with read-write lock when it is modified
2018-09-10 07:11:00 +08:00
Xy Ziemba
71b7f19aad
Fix scanning identical column names occurring >2 times ( #2080 )
...
Fix the indexing logic used in selectedColumnsMap to skip fields
that have already been seen. The values of selectedColumns map
must be indexed relative to fields, not relative to selectFields.
2018-09-10 06:12:58 +08:00
Jinzhu
dc3b2476c4
Don't save ignored fields into database
2018-09-10 06:03:41 +08:00
Adem Özay
6f58f8a52c
added naming strategy option for db, table and column names ( #2040 )
2018-09-10 05:52:20 +08:00
hector
53995294ef
Change buildCondition TableName to struct's TableName when query is interface{} ( #2011 )
2018-08-19 07:13:16 +08:00
Alexey
409121d9e3
Fixed mysql query syntax for FK removal ( #1993 )
2018-07-27 07:43:49 +08:00
Kevin
ac3ec858a6
Edit DB.clone(), DB.Dialect(), and Scope.Dialect() preserve transactions ( #1939 )
...
* Edit DB.clone(), DB.Dialect(), and Scope.Dialect() preserve transactions.
* Adds a test case for tables creations and autoMigrate in the same transaction.
2018-07-27 07:35:53 +08:00
Shane
6842b49a1a
fix scope.removeForeignKey method ( #1841 )
2018-04-16 09:20:02 -05:00
Saúl Ortega
52c5c8127c
Support for UTF8 names on DB ( #1793 )
2018-03-15 22:35:31 +08:00
Jinzhu
6ed508ec6a
Fix panic with raw SQL
2018-02-28 07:43:56 +08:00
Jinzhu
becd777b1e
Fix unicode chars in SQL
2018-02-13 12:37:39 +08:00
Jinzhu
67c4280c57
Fix support embedded pointer type struct, close #1450
2018-02-13 10:00:18 +08:00
Jinzhu
cfd1cc586a
Add 2D array support, close #1201
2018-02-13 08:33:11 +08:00
Jinzhu
8005321a1c
Allow table option when DropTable, close #1514
2018-02-12 14:49:24 +08:00
Jinzhu
30adc80edc
Test customize data type for primary key
2018-02-12 13:20:55 +08:00
Jinzhu
7e2bb3d7fa
Allow customize table name when creating index, close #1656
2018-02-12 11:56:51 +08:00
Jinzhu
7a8c2bbff8
Refactor build SQL condition
2018-02-12 00:06:31 +08:00
Jinzhu
86c04795b7
Port PR #1655 to Not query builder
2018-02-11 15:52:52 +08:00
andrew
8d66eb4926
fixed wrong param substitution order
2018-02-11 14:58:22 +08:00
Jinzhu
46269198a4
Refactor PR #1569
2018-02-11 13:41:46 +08:00
matematik7
36043ad905
Fix for quoted column names and add test
2018-02-11 13:11:54 +08:00
matematik7
841ea1bde5
Do not always override select on pluck
2018-02-11 13:11:54 +08:00
Jinzhu
c503108f83
Refactor fix valuer
2018-02-11 12:48:08 +08:00
Viktor Nikolaiev
ba3e6201c7
fixed issue with null values in where conditions
2018-02-11 09:19:57 +08:00
Viktor Nikolaiev
3b6d790e93
Made it possible to implement driver.Valuer for byte slices
2018-02-11 09:19:57 +08:00
Jinzhu
fd15156d39
Fix Count in mssql for SQL with group
2018-02-11 09:16:10 +08:00