Commit 7b58b2d
authored
解决 sql 语句中带 DATE_FORMAT 时的 vsprintf 不正确的问题
eg:
>>> vsprintf("select DATE_FORMAT(created_at, '%Y-%m') from `users`", ['a', 'b'])
=> "select DATE_FORMAT(created_at, '-') from `users`"
>>> vsprintf("select DATE_FORMAT(created_at, '%%Y-%%m') from `users`", ['a', 'b'])
=> "select DATE_FORMAT(created_at, '%Y-%m') from `users`"1 parent a6ad71b commit 7b58b2d
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
0 commit comments