givemeafish
956f7ce843
fix: 'type XXXX int' will print wrong sql to terminal ( #6917 )
...
Co-authored-by: 王泽平 <zeping.wang@yo-star.com>
2024-03-21 16:00:02 +08:00
iTanken
87decced23
fix: ExplainSQL using consecutive pairs of escaper in SQL string represents an escaper ( #6766 )
...
Preventing it from being interpreted as the string terminator. This is a widely used escape mechanism in SQL standards and is applicable in most relational databases.
2023-12-28 19:53:36 +08:00
Flc゛
d2fb7a942b
chore(logger): optimize ( #6675 )
...
* chore(logger): optimize
* chore(logger): optimize
2023-11-07 10:19:41 +08:00
Heliner
2c2089760c
add float32 test case ( #6530 )
2023-08-19 21:33:57 +08:00
fayvori
3c34bc2f59
refactor: Regex description ( #6507 )
...
* Mirror cleanup
* Regex description
---------
Co-authored-by: Ignat Belousov <ignatbelousov@Ignats-MacBook-Pro.local>
2023-08-07 16:35:19 +08:00
San Ye
193c454cf4
keep float precision in ExplainSQL ( #6495 )
2023-08-04 10:31:18 +08:00
Jinzhu
4b768c8aff
Upgrade tests deps
2023-01-01 22:22:08 +08:00
Jinzhu
ddd3cc2502
Add ParameterizedQueries option support for logger, close #5288
2022-12-25 11:37:23 +08:00
Shunsuke Otani
8c3018b96a
Replace `ioutil.Discard` with `io.Discard` ( #5603 )
2022-08-15 10:50:06 +08:00
Xudong Zhang
bab3cd1724
fix bad logging performance of bulk create ( #5520 ) ( #5521 )
2022-07-18 20:47:00 +08:00
codingxh
664c5fb767
strings.replace -> strings.replaceAll ( #5095 )
...
Co-authored-by: huquan<xxhh_quan_g@163.com>
2022-02-20 19:55:04 +08:00
li-jin-gou
19ac396a22
fix: isPrintable incorrect ( #5076 )
...
* fix: isPrintable incorrect
* fix: isPrintable incorrect
* style: use ReplaceAll instead of Replace
2022-02-15 20:32:03 +08:00
Jinzhu
4eeb839cea
Better support Stringer when explain SQL
2022-02-09 15:17:25 +08:00
kinggo
b47cf57f5e
ci: add gofumpt check in reviewdog ( #4973 )
2022-01-06 15:02:53 +08:00
Jinzhu
b23c3b290e
Don't query with primary key when using Save
2021-11-08 18:49:59 +08:00
Sungyun Hur
a83d25e25e
chore(logger): explicitly set config of Default Logger ( #4605 )
2021-08-11 11:49:46 +08:00
kalle (jag)
25b9f2e26a
Added return names to logger.Interface.Trace ( #4450 )
2021-06-11 21:51:40 +08:00
我的我的
3f359eab9b
slim trace if depth ( #4346 )
...
Co-authored-by: gogs <guzzsek@gmail.com>
2021-05-05 08:14:40 +08:00
Chris Faulkner
15a46bc042
Fix some typos ( #4294 )
2021-04-19 21:03:39 +08:00
Jinzhu
f3bdfa8261
Add IgnoreRecordNotFoundError option for logger
2021-04-09 10:21:01 +08:00
Jinzhu
bb153384d1
Switch driver.Valuer, fmt.Stringer order when format SQL
2021-02-07 11:18:42 +08:00
heige
ef5ef18d4a
recommended to use magic const strings ( #4059 )
2021-02-07 10:09:32 +08:00
Jinzhu
7302c8a136
Fix tests and logger
2021-01-10 15:27:53 +08:00
Jinzhu
bf0fd9bef6
Fix logger check LogLevel
2021-01-06 16:07:19 +08:00
qifengzhang007
6d90d09cb8
Recorder追踪函数trace在finish_api文件358行scan函数所在的371行被调用时,BeginAt 没有赋值,默认值0001-0:0:0导致追踪日志显示的sql耗时无限大. ( #3657 )
...
Co-authored-by: 张奇峰 <10515935zwj>
2020-10-22 14:09:09 +08:00
Jinzhu
a1ea1713b0
Fix log Stringer
2020-10-19 11:04:18 +08:00
TABRIZ ATAYI
d825554307
nil point transfer '<nil>' not transfer NULL #3604
2020-10-18 00:05:43 +02:00
Jinzhu
063b1ca0c4
Refactor SlowSQL log
2020-10-10 10:56:00 +08:00
Jinzhu
9eec6ae066
Fix affected rows for Scan, change affected rows count for row/rows to '-', close #3532
2020-09-27 12:25:38 +08:00
Jinzhu
c0de3c5051
Support FullSaveAssociations Mode, close #3487 , #3506
2020-09-24 19:29:15 +08:00
caelansar
68920449f9
Fix format sql log ( #3492 )
2020-09-19 13:48:34 +08:00
Jinzhu
0ec10d4907
Fix format SQL log, close #3465
2020-09-14 12:37:16 +08:00
Jinzhu
f6117b7f3d
Should not diplay SubQuery SQL log, close #3437
2020-09-09 16:26:16 +08:00
Jinzhu
c70c097e88
Refactor format SQL for driver.Valuer
2020-09-08 19:11:29 +08:00
egenchen
6de0356a57
Fix monocolor log output inconsist with colorful log ( #3425 )
2020-09-08 16:59:47 +08:00
Jinzhu
dbaa6b0ec3
Fix Scan struct with primary key, close #3357
2020-09-02 16:14:26 +08:00
aimuz
9a101c8a08
fmt.Sprint() to strconv.Format ( #3354 )
2020-09-01 21:03:37 +08:00
Qt
a140908839
refactor function convertParams's default case ( #3208 )
2020-07-28 17:25:03 +08:00
Jinzhu
4456df7a5d
Lint with golangci-lint
2020-07-16 11:27:12 +08:00
Jinzhu
5790ba9ef4
Fix package path
2020-06-02 09:25:55 +08:00
Jinzhu
e986371a42
Rename package name
2020-06-02 09:18:01 +08:00
Jinzhu
4e147e1256
Test SubQuery
2020-06-01 21:26:23 +08:00
Jinzhu
ae9e4f1dd8
Fix change log level
2020-05-31 17:49:31 +08:00
Jinzhu
7b6b9c4d22
Add tests for Columns
2020-05-31 00:42:52 +08:00
Jinzhu
c291c2f42c
Add Scanner, Valuer tests
2020-05-30 21:05:27 +08:00
Jinzhu
6f4602af11
Fix mysql tests
2020-05-29 23:38:03 +08:00
Jinzhu
dea48a8c59
Test Many2Many Association
2020-05-26 00:16:44 +08:00
Jinzhu
f0a442adff
Refactor tests
2020-05-23 23:50:48 +08:00
Jinzhu
8def7be583
Add context to logger
2020-05-05 21:28:38 +08:00
Jinzhu
345ff7577c
Save before associations
2020-04-15 23:58:26 +08:00