Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加隐藏字段INVISIBLE时语法解析失败 #697

Open
wineejam opened this issue Jan 23, 2025 · 1 comment
Open

添加隐藏字段INVISIBLE时语法解析失败 #697

wineejam opened this issue Jan 23, 2025 · 1 comment

Comments

@wineejam
Copy link

描述
ALTER TABLE test_table ADD COLUMN test_invi INT NULL DEFAULT 1 COMMENT '测试字段隐藏' INVISIBLE;
以上DDL语句,增加一个不可见字段,解析失败

错误日志:
time="2025/01/23 11:58:00.796" level=info msg="con:2 new connection 192.168.6.135:26629" file=server.go func=onConn line=319
time="2025/01/23 11:58:00.798" level=debug msg="con:0 ActivePendingTxn select HIGH_PRIORITY * from mysql.global_variables where variable_name in ('autocommit', 'sql_mode', 'max_allowed_packet', 'time_zone', 'block_encryption_mode', 'tidb_skip_utf8_check', 'tidb_index_join_batch_size', 'tidb_index_lookup_size', 'tidb_index_lookup_concurrency', 'tidb_index_lookup_join_concurrency', 'tidb_index_serial_scan_concurrency', 'tidb_hash_join_concurrency', 'tidb_projection_concurrency', 'tidb_hashagg_partial_concurrency', 'tidb_hashagg_final_concurrency', 'tidb_backoff_lock_fast', 'tidb_constraint_check_in_place', 'tidb_ddl_reorg_worker_cnt', 'tidb_opt_insubquery_unfold', 'tidb_distsql_scan_concurrency', 'tidb_max_chunk_size', 'tidb_enable_cascades_planner', 'tidb_retry_limit', 'tidb_disable_txn_auto_retry')" file=adapter.go func=buildExecutor line=278
time="2025/01/23 11:58:00.801" level=debug msg="con:2 ActivePendingTxn set autocommit=0" file=adapter.go func=buildExecutor line=278
time="2025/01/23 11:58:00.801" level=debug msg="con:2 autocommit=0" file=set.go func=setSysVariable line=180
time="2025/01/23 11:58:00.813" level=debug msg=mysqlServerVersion file=session_inception.go func=mysqlServerVersion line=1738
time="2025/01/23 11:58:00.818" level=debug msg="db version: 80012" file=session_inception.go func=mysqlServerVersion line=1792
time="2025/01/23 11:58:00.819" level=info msg="s.innodbLargePrefix: true " file=session_inception.go func=mysqlServerVersion line=1850
time="2025/01/23 11:58:00.819" level=debug msg=setSqlSafeUpdates file=session_inception.go func=setSqlSafeUpdates line=1997
time="2025/01/23 11:58:00.819" level=debug msg=setLockWaitTimeout file=session_inception.go func=setLockWaitTimeout line=2019
time="2025/01/23 11:58:00.819" level=debug msg=initDisableTypes file=session_inception.go func=initDisableTypes line=9039
time="2025/01/23 11:58:00.819" level=debug msg=processCommand file=session_inception.go func=processCommand line=587
time="2025/01/23 11:58:00.819" level=debug msg=checkChangeDB file=session_inception.go func=checkChangeDB line=7197
time="2025/01/23 11:58:00.824" level=error msg="con:2 解析失败! line 1 column 119 near "INVISIBLE" " file=session_inception.go func=executeInc line=220
time="2025/01/23 11:58:00.824" level=error msg=" ALTER TABLE test_table ADD COLUMN test_invi INT NULL DEFAULT 1 COMMENT '测试字段隐藏' INVISIBLE" file=session_inception.go func=executeInc line=221
time="2025/01/23 11:58:00.827" level=info msg="con:2 close connection" file=server.go func=func1 line=321

@wineejam wineejam changed the title 字段不可见,解析失败 添加隐藏字段INVISIBLE时语法解析失败 Jan 23, 2025
@zmix999
Copy link
Contributor

zmix999 commented Jan 23, 2025

主分支暂时不支持,可以看下我fork的分支https://gitee.com/zhoujin826/goInception

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants