Comments (3)
Don't fix the dialect, fix the driver.
https://docs.oracle.com/javase/6/docs/api/java/sql/ResultSetMetaData.html#getColumnType(int)
Retrieves the designated column's SQL type.
Not the value type...
And https://sqlite.org/datatype3.html
In order to maximize compatibility between SQLite and other database engines, and so that the example above will work on SQLite as it does on other SQL database engines, SQLite supports the concept of "type affinity" on columns. The type affinity of a column is the recommended type for data stored in that column.
'NULL' is not listed among type affinities: 'TEXT', 'NUMERIC', 'INTEGER', 'REAL', 'BLOB'.
from sqlite-dialect.
If it's a driver issue, how should it be fixed at the driver?
from sqlite-dialect.
Something like:
- Do not take into account the value type,
- Retrieve the "type affinity" using the same rules as SQLite and return the appropriate SQL type.
Or:
Just replace NULL by NUMERIC
(the default type affinity).
from sqlite-dialect.
Related Issues (20)
- commit transaction HOT 9
- Can't download jar HOT 3
- A few questions about this dialect implementation HOT 2
- FLOAT and DOUBLE commented out in Dialect HOT 4
- The `import org.hibernate.util` cannot be resolved HOT 1
- UNIQUE not working HOT 2
- License? HOT 1
- Use LocalDate type HOT 4
- Some guide for hibernate and spring boot HOT 1
- unique key Error. HOT 4
- Support for Hibernate 6 HOT 2
- Wrong name of JdbcExceptionHelper HOT 4
- AutoIncrement failing HOT 4
- Update dependencies to support org.hibernate.orm/hibernate-core/6.1.5.Final HOT 2
- Fix getCastTypeName
- automatically integrate into hibernate dialect detection HOT 5
- @Lob error HOT 2
- maven artifact release? HOT 26
- Cannot alter an existing table HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sqlite-dialect.