Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added tools/tool_mysql/1.0.1/MySQL 带参查询.tool
Binary file not shown.
16 changes: 16 additions & 0 deletions tools/tool_mysql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,19 @@
- `to_json_str` (Boolean): 结果是否转换为JSON字符串
- `true`: 输出 JSON字符串
- `false`: 输出 List

## 版本更新记录:

### 1.0.1

1. bugfix: 当SQL使用 `{xxx}` 占位时,如果SQL中存在 `%` 字符,则会报错的问题修复。

举例:BUG修复前,当传入如下参数时,工具会抛出异常:`TypeError: not enough arguments for format string`
```json
{
"sql": "SELECT * FROM user WHERE type_id = {type_id} AND name LIKE '王%'",
"params": {
"type_id": "1"
}
}
```
Loading