Meituan-Dianping / Meituan-Dianping/DBProxy

不支持在session级系统变量使用replace函数

Open
#114 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
2.3k
Forks
554
PR merge metrics
No merged PRs in 30d

Description

报错信息:
2017-03-28 12:00:52.670076: (critical)proxy-plugin.c:2086(proxy_read_query) event_thread(2) C:xxxx:47043 S:xx:3306(thread_id:0) Usr:xx Db:xx Proxy Warning - Syntax Forbid
den Query:SET SESSION sql_mode =
REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(
@@sql_mode,
"STRICT_ALL_TABLES,", ""),
",STRICT_ALL_TABLES", ""),
"STRICT_ALL_TABLES", ""),
"STRICT_TRANS_TABLES,", ""),
",STRICT_TRANS_TABLES", ""),
"STRICT_TRANS_TABLES", "")

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at proxy-plugin.c:2086 in proxy_read_query and inspect how the shown SET SESSION sql_mode query is classified as Syntax Forbid. Reproduce the reported query if the repository provides a relevant entry point; done means this session-level REPLACE expression is accepted without the reported warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
backend, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.