-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add own enumeration of data types to API #2194
Comments
sounds good |
Such vendor-specific types have textual names, but they still need some integer constants. I don't want to use constants from In the source code names and numbers aren't normally used, because there are no lookup methods for them. If we create an own enumeration, its constants will be used as is and it doesn't really matter how |
Oracle's driver uses |
In JDBC 4.2 integer constants from
java.sql.Types
have better alternative: ajava.sql.SQLType
interface. There is aJDBCType
implementation that is equivalent toSQLType
and each database can have an own implementation with own types.I think we need to create such implementation (possibly an enumeration) in
org.h2.api
package and list all own data types (including intervals, geometries, JSON, etc.) in it.The text was updated successfully, but these errors were encountered: