Commit Graph

30 Commits

Author SHA1 Message Date
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
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
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
Chris Faulkner 15a46bc042
Fix some typos (#4294) 2021-04-19 21:03:39 +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 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
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 c70c097e88 Refactor format SQL for driver.Valuer 2020-09-08 19:11:29 +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 4e147e1256 Test SubQuery 2020-06-01 21:26:23 +08:00
Jinzhu c291c2f42c Add Scanner, Valuer tests 2020-05-30 21:05:27 +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 345ff7577c Save before associations 2020-04-15 23:58:26 +08:00
Jinzhu af080e6773 Fix primary key tag 2020-03-12 08:39:42 +08:00
Jinzhu 04adbaf7f6 Fix parse stmt ReflectValue 2020-02-24 08:51:35 +08:00
Jinzhu fa22807e12 Make inesrt into db works 2020-02-23 19:41:29 +08:00
Jinzhu c3b798aec8 Refactor SQL Explainer 2020-02-23 13:22:08 +08:00
Jinzhu bc5ceff82f Explain SQL for dialects 2020-02-23 12:41:13 +08:00