Skip to content

Switch the sql used to fetch the os release version#554

Merged
sebjulliand merged 1 commit into
mainfrom
fix/improve-os-fetch
Jun 23, 2026
Merged

Switch the sql used to fetch the os release version#554
sebjulliand merged 1 commit into
mainfrom
fix/improve-os-fetch

Conversation

@julesyan

Copy link
Copy Markdown
Member

Changes

Changed the SQL from

SELECT OS_VERSION CONCAT '.' CONCAT OS_RELEASE AS VERSION
FROM sysibmadm.env_sys_info

to the new one

SELECT CAST(SUBSTR(DATA_AREA_VALUE, 2, 1) CONCAT '.' CONCAT SUBSTR(DATA_AREA_VALUE, 4, 1) AS VARCHAR(32)) AS OS_VERSION
FROM TABLE (QSYS2.DATA_AREA_INFO('QSS1MRI', '*LIBL'))

This should improve performance

How to test this PR

Connect to a system

Checklist

  • have tested my change

@julesyan julesyan requested a review from a team June 23, 2026 12:46
@github-actions

Copy link
Copy Markdown
Contributor

👋 A new build is available for this PR based on 67dda02.

@bobcozzi

Copy link
Copy Markdown

Looks good to me!

@sebjulliand sebjulliand left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works fine. Approved!

@sebjulliand sebjulliand merged commit 4f0881e into main Jun 23, 2026
1 check passed
@sebjulliand sebjulliand deleted the fix/improve-os-fetch branch June 23, 2026 12:58
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