Comments (9)
- Show me your code
- your mysql version
from gendry.
where := map[string]interface{}{
"user_id": User_id,
"server_filename": Server_Filename,
"isdelete": 0,
}
where["_limit"] = []uint{3}
// where["_orderby"] = "fs_id desc"
fields := []string{"*"}
err := dao.BaseSelectConvert(ctx, where, fields, &tabRes)
_orderby是可用的,_limit传入后就会报错。mysql是5.6的
from gendry.
mysql版本
| innodb_version | 5.6.23 |
| protocol_version | 10 |
| slave_type_conversions | |
| version | 5.6.23-baidu-trunk-2.2.4.3-log |
| version_comment | Source distribution |
| version_compile_machine | x86_64 |
| version_compile_os | Linux
from gendry.
辛苦有空帮忙看下
from gendry.
from gendry.
这样直接看不出问题,你可以开启mysql driver的interpolateParams试试看,打印下最后的结果
from gendry.
还得辛苦帮忙看下 sql中unhex该怎么传
from gendry.
SELECT * FROM file_meta WHERE (isdelete=? AND server_filename=? AND user_id=?)] sql_args[[0,"unhex(e69da5e887aaefbc9a7669766f2058706c617936)",3941040758 这样报错
from gendry.
Related Issues (20)
- Proposal: Support `BuildInsert` receive the struct rather than map[string]interface{} HOT 5
- mysql预处理 HOT 2
- update+limit HOT 1
- update tb set amount=amount+10 模式好像没找到例子 HOT 1
- AggregateMax 聚合函数当 求某个时间(datetime)的最大值时,怎么获取结果
- Scanner 的 bind 函数不支持 当值是 time.Time 时 reflect.Scanner 接口 HOT 5
- Where 过滤能否单独开放出来 HOT 4
- builder.BuildSelect where参数传递的map[string]interface{}在生成sql的时候where顺序随机生成,导致生成sql不走索引 HOT 1
- NamedQuery 支持嵌套 map[string]interface{}, 实现过滤条件
- 是否支持MySQL关键词 HOT 2
- scanner.Scan返回错误码 HOT 3
- buildDelete不支持limit操作 HOT 1
- 请问下, BuildInsertOnDuplicate方法支持如下的sql吗? HOT 3
- 支持force index操作吗
- "[scanner]: empty result" HOT 4
- 请问可以支持UNION ALL语句吗? HOT 1
- 支持多个 or 查询 HOT 1
- scanner在go继承模式下,无法scan到父级tag HOT 1
- 请求打个最新版本的tag HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gendry.