Code Monkey home page Code Monkey logo

Comments (6)

PittyXu avatar PittyXu commented on May 20, 2024

20240418175657

from apijson.

TommyLemon avatar TommyLemon commented on May 20, 2024

基本只有两种可能:
1.关了预编译
断点调试下 AbstractSQLConfig.isPrepared 返回值

2.实际用的不是 MySQL,而是 TDengine 等不支持预编译的数据库
断点调试下 AbstractSQLConfig.getSQLDatabase 返回值

from apijson.

TommyLemon avatar TommyLemon commented on May 20, 2024

官网用的 MySQL 是 5.7.34 社区版

from apijson.

PittyXu avatar PittyXu commented on May 20, 2024

@TommyLemon isPrepared 调用的地方有很多,初始进入都是为true, 但如下代码会设置为 false.

image

image

image

from apijson.

TommyLemon avatar TommyLemon commented on May 20, 2024

一开始 prepared = false 只是为了打印 SQL,以及用 SQL 作为缓存 key。
实际执行时 prepared = true,SQL 都是 WHERE column = ? 然后 preparedStatement.setObject(value)
可以再断点调试 AbstractSQLExecutor.executeQuery 和 executeUpdate,看看是不是用 PreparedStatement

from apijson.

PittyXu avatar PittyXu commented on May 20, 2024

重启后不知道为啥,无法复现了

from apijson.

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.