obclient icon indicating copy to clipboard operation
obclient copied to clipboard

[Bug]: [OBClient 2.2.3] "\G" could not mark the end of sql statements in some cases

Open passiondaisy opened this issue 2 years ago • 0 comments

Describe the bug

\G 放到末行尾 不会触发自动执行: image

\G 单独放到下面一行 就可以触发自动执行的: image

Environment

[[email protected] /home/admin]$ obclient -V obclient Ver 2.2.3 Distrib 10.4.18-MariaDB, for Linux (x86_64) using readline 5.1

[[email protected] /home/admin]$ rpm -qa | grep obclient libobclient-2.2.2-20230315104242.el7.x86_64 obclient-2.2.3-20230808103716.el7.x86_64

Fast reproduce steps

select p.* from SYS.ALL_VIRTUAL_PART_AGENT p, SYS.ALL_VIRTUAL_TABLE_AGENT tab , SYS.ALL_VIRTUAL_DATABASE_AGENT db where db.DATABASE_ID = tab.DATABASE_ID and tab.DATABASE_ID = db.DATABASE_ID and p.TABLE_ID = tab.TABLE_ID and db.DATABASE_NAME = 'SYS' and tab.TABLE_NAME = 'T2_M_LH' and p.PART_NAME = 'P1'

Expected behavior

No response

Actual behavior

No response

Additional context

No response

passiondaisy avatar Aug 31 '23 12:08 passiondaisy