DigitalChinaOpenSource / TiDB-for-PostgreSQL

PgSQL compatible on distributed database TiDB
Apache License 2.0
387 stars 21 forks source link

Parameter processing in bind message #60

Open pupillord opened 3 years ago

pupillord commented 3 years ago

Development Task

In the extend query, backend server will get parameter values through the bind messages. And tidb-server will use the datum structure to store the values of these parameters.

The datum is only used to store value of mysql data type and each type will have a different datum to store in TiDB.

We need to parse the bind message and store the parameter values in different datum according to different types. That is to improve the function parseBindArgs.

Related Files

server/conn_stmt.go