Giter Club home page Giter Club logo

Comments (8)

sangshuduo avatar sangshuduo commented on June 15, 2024

通用问题还是直接提到 TDengine 仓库可以比较快的有人响应

from driver-go.

wenj91 avatar wenj91 commented on June 15, 2024

通用问题还是直接提到 TDengine 仓库可以比较快的有人响应

这个并不是通用问题,这个是驱动问题

from driver-go.

huskar-t avatar huskar-t commented on June 15, 2024

@wenj91 参照 mysql 实现
https://github.com/go-sql-driver/mysql/blob/6cf3092b0e12f6e197de3ed6aa2acfeac322a9bb/connection.go#L198-L295

from driver-go.

wenj91 avatar wenj91 commented on June 15, 2024

@wenj91 参照 mysql 实现 https://github.com/go-sql-driver/mysql/blob/6cf3092b0e12f6e197de3ed6aa2acfeac322a9bb/connection.go#L198-L295

不,这只是其中一部分实现,它后续还有处理的,不单单是用strings.Count(query, "?")来简单判断参数个数的,这样必然会出现bug

from driver-go.

huskar-t avatar huskar-t commented on June 15, 2024

@wenj91 欢迎提交pr

from driver-go.

wenj91 avatar wenj91 commented on June 15, 2024

@wenj91 欢迎提交pr

https://github.com/wenj91/taos-driver/blob/320f402a7c3e3bf52028c88ba0d0274d3f3d4cdd/util_sql.go#L123-L235
这是我实现部分,不过还经过大量测试,等我测试完全再提一个pr吧

from driver-go.

huskar-t avatar huskar-t commented on June 15, 2024

@wenj91 欢迎提交pr

https://github.com/wenj91/taos-driver/blob/320f402a7c3e3bf52028c88ba0d0274d3f3d4cdd/util_sql.go#L123-L235 这是我实现部分,不过还经过大量测试,等我测试完全再提一个pr吧

我看着这部分实现,情况考虑的还是不够,我觉得这个应该由C接口来负责语法解析并返回参数数量
@sangshuduo @hjxilinx @dapan1121

from driver-go.

wenj91 avatar wenj91 commented on June 15, 2024

@wenj91 欢迎提交pr

https://github.com/wenj91/taos-driver/blob/320f402a7c3e3bf52028c88ba0d0274d3f3d4cdd/util_sql.go#L123-L235 这是我实现部分,不过还经过大量测试,等我测试完全再提一个pr吧

我看着这部分实现,情况考虑的还是不够,我觉得这个应该由C接口来负责语法解析并返回参数数量 @sangshuduo @hjxilinx @dapan1121

如果能由C接口返回更好,因为MySQL就这么做的

from driver-go.

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.