Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
天地威能
oceanbase
提交
69c03f57
O
oceanbase
项目概览
天地威能
/
oceanbase
与 Fork 源项目一致
Fork自
oceanbase / oceanbase
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
oceanbase
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
69c03f57
编写于
11月 23, 2022
作者:
S
seuwebber
提交者:
wangzelin.wzl
11月 23, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[CP] [to #45091799]fix bug schema_gaurd not inited
上级
8129d41b
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
7 addition
and
2 deletion
+7
-2
asan_ignore_list.txt
asan_ignore_list.txt
+0
-0
src/sql/ob_spi.cpp
src/sql/ob_spi.cpp
+5
-2
src/sql/ob_spi.h
src/sql/ob_spi.h
+2
-0
未找到文件。
asan_ignore_list.txt
0 → 100644
浏览文件 @
69c03f57
src/sql/ob_spi.cpp
浏览文件 @
69c03f57
...
@@ -1708,6 +1708,7 @@ int ObSPIService::spi_prepare(common::ObIAllocator &allocator,
...
@@ -1708,6 +1708,7 @@ int ObSPIService::spi_prepare(common::ObIAllocator &allocator,
spi_resolve_prepare
(
allocator
,
spi_resolve_prepare
(
allocator
,
session
,
session
,
sql_proxy
,
sql_proxy
,
schema_guard
,
expr_factory
,
expr_factory
,
sql
,
sql
,
is_cursor
,
is_cursor
,
...
@@ -1807,6 +1808,7 @@ int ObSPIService::spi_parse_prepare(common::ObIAllocator &allocator,
...
@@ -1807,6 +1808,7 @@ int ObSPIService::spi_parse_prepare(common::ObIAllocator &allocator,
int
ObSPIService
::
spi_build_record_type_by_result_set
(
common
::
ObIAllocator
&
allocator
,
int
ObSPIService
::
spi_build_record_type_by_result_set
(
common
::
ObIAllocator
&
allocator
,
ObSQLSessionInfo
&
session
,
ObSQLSessionInfo
&
session
,
share
::
schema
::
ObSchemaGetterGuard
&
schema_guard
,
const
sql
::
ObResultSet
&
result_set
,
const
sql
::
ObResultSet
&
result_set
,
int64_t
hidden_column_count
,
int64_t
hidden_column_count
,
ObRecordType
*&
record_type
,
ObRecordType
*&
record_type
,
...
@@ -1854,8 +1856,6 @@ int ObSPIService::spi_build_record_type_by_result_set(common::ObIAllocator &allo
...
@@ -1854,8 +1856,6 @@ int ObSPIService::spi_build_record_type_by_result_set(common::ObIAllocator &allo
if
(
OB_SUCC
(
ret
)
&&
1
==
hidden_column_count
)
{
if
(
OB_SUCC
(
ret
)
&&
1
==
hidden_column_count
)
{
const
common
::
ObField
&
field
=
columns
->
at
(
columns
->
count
()
-
1
);
const
common
::
ObField
&
field
=
columns
->
at
(
columns
->
count
()
-
1
);
uint64_t
table_id
=
OB_INVALID_ID
;
uint64_t
table_id
=
OB_INVALID_ID
;
share
::
schema
::
ObSchemaGetterGuard
schema_guard
;
OZ
(
GCTX
.
schema_service_
->
get_tenant_schema_guard
(
session
.
get_effective_tenant_id
(),
schema_guard
));
OZ
(
schema_guard
.
get_table_id
(
session
.
get_effective_tenant_id
(),
field
.
dname_
,
field
.
org_tname_
,
OZ
(
schema_guard
.
get_table_id
(
session
.
get_effective_tenant_id
(),
field
.
dname_
,
field
.
org_tname_
,
false
,
ObSchemaGetterGuard
::
ALL_NON_HIDDEN_TYPES
,
table_id
));
false
,
ObSchemaGetterGuard
::
ALL_NON_HIDDEN_TYPES
,
table_id
));
OX
(
rowid_table_id
=
table_id
);
OX
(
rowid_table_id
=
table_id
);
...
@@ -1869,6 +1869,7 @@ int ObSPIService::spi_build_record_type_by_result_set(common::ObIAllocator &allo
...
@@ -1869,6 +1869,7 @@ int ObSPIService::spi_build_record_type_by_result_set(common::ObIAllocator &allo
int
ObSPIService
::
spi_resolve_prepare
(
common
::
ObIAllocator
&
allocator
,
int
ObSPIService
::
spi_resolve_prepare
(
common
::
ObIAllocator
&
allocator
,
ObSQLSessionInfo
&
session
,
ObSQLSessionInfo
&
session
,
ObMySQLProxy
&
sql_proxy
,
ObMySQLProxy
&
sql_proxy
,
share
::
schema
::
ObSchemaGetterGuard
&
schema_guard
,
sql
::
ObRawExprFactory
&
expr_factory
,
sql
::
ObRawExprFactory
&
expr_factory
,
const
ObString
&
sql
,
const
ObString
&
sql
,
bool
is_cursor
,
bool
is_cursor
,
...
@@ -1921,6 +1922,7 @@ int ObSPIService::spi_resolve_prepare(common::ObIAllocator &allocator,
...
@@ -1921,6 +1922,7 @@ int ObSPIService::spi_resolve_prepare(common::ObIAllocator &allocator,
&&
inner_result
->
result_set
().
get_field_columns
()
->
count
()
>
0
)
{
&&
inner_result
->
result_set
().
get_field_columns
()
->
count
()
>
0
)
{
OZ
(
spi_build_record_type_by_result_set
(
allocator
,
OZ
(
spi_build_record_type_by_result_set
(
allocator
,
session
,
session
,
schema_guard
,
inner_result
->
result_set
(),
inner_result
->
result_set
(),
prepare_result
.
has_hidden_rowid_
?
1
:
0
,
prepare_result
.
has_hidden_rowid_
?
1
:
0
,
prepare_result
.
record_type_
,
prepare_result
.
record_type_
,
...
@@ -1948,6 +1950,7 @@ int ObSPIService::spi_resolve_prepare(common::ObIAllocator &allocator,
...
@@ -1948,6 +1950,7 @@ int ObSPIService::spi_resolve_prepare(common::ObIAllocator &allocator,
CK
(
OB_NOT_NULL
(
result
=
static_cast
<
observer
::
ObInnerSQLResult
*>
(
proxy_result
.
get_result
())));
CK
(
OB_NOT_NULL
(
result
=
static_cast
<
observer
::
ObInnerSQLResult
*>
(
proxy_result
.
get_result
())));
OZ
(
spi_build_record_type_by_result_set
(
allocator
,
OZ
(
spi_build_record_type_by_result_set
(
allocator
,
session
,
session
,
schema_guard
,
result
->
result_set
(),
result
->
result_set
(),
prepare_result
.
has_hidden_rowid_
?
1
:
0
,
prepare_result
.
has_hidden_rowid_
?
1
:
0
,
prepare_result
.
record_type_
,
prepare_result
.
record_type_
,
...
...
src/sql/ob_spi.h
浏览文件 @
69c03f57
...
@@ -425,6 +425,7 @@ public:
...
@@ -425,6 +425,7 @@ public:
static
int
spi_build_record_type_by_result_set
(
common
::
ObIAllocator
&
allocator
,
static
int
spi_build_record_type_by_result_set
(
common
::
ObIAllocator
&
allocator
,
ObSQLSessionInfo
&
session
,
ObSQLSessionInfo
&
session
,
share
::
schema
::
ObSchemaGetterGuard
&
schema_guard
,
const
sql
::
ObResultSet
&
result_set
,
const
sql
::
ObResultSet
&
result_set
,
int64_t
hidden_column_count
,
int64_t
hidden_column_count
,
pl
::
ObRecordType
*&
record_type
,
pl
::
ObRecordType
*&
record_type
,
...
@@ -577,6 +578,7 @@ private:
...
@@ -577,6 +578,7 @@ private:
static
int
spi_resolve_prepare
(
common
::
ObIAllocator
&
allocator
,
static
int
spi_resolve_prepare
(
common
::
ObIAllocator
&
allocator
,
ObSQLSessionInfo
&
session
,
ObSQLSessionInfo
&
session
,
ObMySQLProxy
&
sql_proxy
,
ObMySQLProxy
&
sql_proxy
,
share
::
schema
::
ObSchemaGetterGuard
&
schema_guard
,
sql
::
ObRawExprFactory
&
expr_factory
,
sql
::
ObRawExprFactory
&
expr_factory
,
const
ObString
&
sql
,
const
ObString
&
sql
,
bool
is_cursor
,
bool
is_cursor
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录