You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Generated columns are not reported as such by database metadata.
To Reproduce
Create the following table with SQLite :
createtablefoo (
id integerprimary key,
bar intnot null generated always as (id +1) stored
);
On the bar column IS_GENERATEDCOLUMN is NO with DatabaseMetaData.getColumns. Without the stored keyword, it is YES.
Expected Behavior
On the bar column IS_GENERATEDCOLUMN should be YES with DatabaseMetaData.getColumns.
Additional Context
See JDBC3DatabaseMetaData. It only checks for a value of "2", when according to the SQLite documentation, it should be checking for both 2 and 3.
The text was updated successfully, but these errors were encountered:
sualeh
changed the title
Generated columns with stored in SQLite are not marked as generated
Generated columns with stored in SQLite are not marked as generated
Jun 18, 2024
sualeh
added a commit
to sualeh/sqlite-jdbc
that referenced
this issue
Jun 18, 2024
Description
Generated columns are not reported as such by database metadata.
To Reproduce
Create the following table with SQLite :
On the
bar
columnIS_GENERATEDCOLUMN
isNO
withDatabaseMetaData.getColumns
. Without the stored keyword, it isYES
.Expected Behavior
On the
bar
columnIS_GENERATEDCOLUMN
should beYES
withDatabaseMetaData.getColumns
.Additional Context
See JDBC3DatabaseMetaData. It only checks for a value of "2", when according to the SQLite documentation, it should be checking for both 2 and 3.
The text was updated successfully, but these errors were encountered: