I have a problem executing a statement with JPA/Hibernate.
I'm trying to insert a record. The statement will be printed to the console:
Hibernate: insert into loan (amount, auto_renew, billed, billing_date, close_date, comment, currency_id, date_offer_added, duration, earned, interest_abs, loan_ext_id, open_date, operator_fee_abs, operator_fees, platform_fee_abs, platform_fees, range, rate, source_systems_id, user_id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
09:32:56.396 [default] [XNIO-2 task-6] WARN o.h.e.jdbc.spi.SqlExceptionHelper - SQL Error: 1064, SQLState: 42000
09:32:56.398 [default] [XNIO-2 task-6] ERROR o.h.e.jdbc.spi.SqlExceptionHelper - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'range, rate, source_systems_id, user_id) values (0.43967500, 0, 0, null, '2017-0' at line 1
My DB configuration looks like this:
datasource:
# Local MYSQL DB
type: com.zaxxer.hikari.HikariDataSource
url: jdbc:mysql://localhost:3306/coinlender?useUnicode=true&characterEncoding=utf8&useSSL=false
username: root
password:
jpa:
database-platform: org.hibernate.dialect.MariaDBDialect
database: MYSQL
show-sql: true
How can I get closer to the issue? I can't find the cause of the error.
Can anyone please help me?
Kind regards, David
@Columnetc!!!