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

[CUBRID-24687] query result is strange, when there is hidden columns in the select list. #4934

Merged
merged 3 commits into from
Feb 7, 2024

Conversation

mhoh3963
Copy link
Contributor

@mhoh3963 mhoh3963 commented Feb 5, 2024

http://jira.cubrid.org/browse/CBRD-24687

Description
The query result is strange, when there is hidden columns in ther select list. This is the case when sp is used in the order by clause, as in the following query. (ex : SELECT col1, col2) FROM tbl1 ORDER BY intTest(col1))

Resolution

  • fix to use query_type instead of col_cnt at db_query_column_count().

…in the select list

http://jira.cubrid.org/browse/CBRD-24687

**Description**
The query result is strange, when there is hidden columns in ther select list.
This is the case when sp is used in the order by clause, as in the following query.
(ex : SELECT col1, col2) FROM tbl1 ORDER BY intTest(col1))

**Resolution**
- fix to replace q_result->num_column instead of db_query_column_count() at cur_tuple().
- fix to use query_type instead of col_cnt at db_query_column_count().
@mhoh3963 mhoh3963 self-assigned this Feb 5, 2024
src/compat/db_query.c Outdated Show resolved Hide resolved
src/compat/db_query.c Outdated Show resolved Hide resolved
src/compat/db_query.c Outdated Show resolved Hide resolved
src/broker/cas_execute.c Outdated Show resolved Hide resolved
- Fix the column count could not be gotten, when executing call and evaluate statements.
@mhoh3963 mhoh3963 merged commit f1a2b51 into CUBRID:develop Feb 7, 2024
10 checks passed
mhoh3963 added a commit to mhoh3963/cubrid that referenced this pull request Feb 7, 2024
…in the select list. (CUBRID#4934)

* [CUBRID-24687] query result is strange, when there is hidden columns in the select list

http://jira.cubrid.org/browse/CBRD-24687

**Description**
The query result is strange, when there is hidden columns in ther select list.
This is the case when sp is used in the order by clause, as in the following query.
(ex : SELECT col1, col2) FROM tbl1 ORDER BY intTest(col1))

**Resolution**
- fix to use query_type instead of col_cnt at db_query_column_count().
mhoh3963 added a commit to mhoh3963/cubrid that referenced this pull request Feb 7, 2024
…in the select list. (CUBRID#4934)

* [CUBRID-24687] query result is strange, when there is hidden columns in the select list

http://jira.cubrid.org/browse/CBRD-24687

**Description**
The query result is strange, when there is hidden columns in ther select list.
This is the case when sp is used in the order by clause, as in the following query.
(ex : SELECT col1, col2) FROM tbl1 ORDER BY intTest(col1))

**Resolution**
- fix to use query_type instead of col_cnt at db_query_column_count().
mhoh3963 added a commit to mhoh3963/cubrid that referenced this pull request Feb 7, 2024
…in the select list. (CUBRID#4934)

* [CUBRID-24687] query result is strange, when there is hidden columns in the select list

http://jira.cubrid.org/browse/CBRD-24687

**Description**
The query result is strange, when there is hidden columns in ther select list.
This is the case when sp is used in the order by clause, as in the following query.
(ex : SELECT col1, col2) FROM tbl1 ORDER BY intTest(col1))

**Resolution**
- fix to use query_type instead of col_cnt at db_query_column_count().
mhoh3963 added a commit to mhoh3963/cubrid that referenced this pull request Feb 7, 2024
…in the select list. (CUBRID#4934)

* [CUBRID-24687] query result is strange, when there is hidden columns in the select list

http://jira.cubrid.org/browse/CBRD-24687

**Description**
The query result is strange, when there is hidden columns in ther select list.
This is the case when sp is used in the order by clause, as in the following query.
(ex : SELECT col1, col2) FROM tbl1 ORDER BY intTest(col1))

**Resolution**
- fix to use query_type instead of col_cnt at db_query_column_count().
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

Successfully merging this pull request may close these issues.

3 participants