Giter VIP home page Giter VIP logo

Comments (9)

caibirdme avatar caibirdme commented on August 27, 2024
  1. Show me your code
  2. your mysql version

from gendry.

wtx-cynthia avatar wtx-cynthia commented on August 27, 2024

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.

wtx-cynthia avatar wtx-cynthia commented on August 27, 2024

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.

wtx-cynthia avatar wtx-cynthia commented on August 27, 2024

辛苦有空帮忙看下

from gendry.

wtx-cynthia avatar wtx-cynthia commented on August 27, 2024

from gendry.

caibirdme avatar caibirdme commented on August 27, 2024

这样直接看不出问题,你可以开启mysql driver的interpolateParams试试看,打印下最后的结果

from gendry.

wtx-cynthia avatar wtx-cynthia commented on August 27, 2024

还得辛苦帮忙看下 sql中unhex该怎么传

from gendry.

wtx-cynthia avatar wtx-cynthia commented on August 27, 2024

SELECT * FROM file_meta WHERE (isdelete=? AND server_filename=? AND user_id=?)] sql_args[[0,"unhex(e69da5e887aaefbc9a7669766f2058706c617936)",3941040758 这样报错

from gendry.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.