-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[jdbc.mysql] Parameter tableIdDigitCount is ignored when set to 0 #9339
Comments
I just encountered the same issue. The |
The behavior is documented:
However, with #13544 a new option was introduced:
The only thing missing:
Currently it is (perhaps implicitly) assumed that JDBC Persistence Service will have its own schema. I will add a note in the README emphasizing this need especially for If there are strong arguments/need for co-existence in the same schema when using
|
Hello,
In services/jdbc.cfg, when using
0
fortableIdDigitCount
:And using this persistence/jdbc.persist file:
I am expecting tables
heating_energy
andtotal_energy
, but I'm gettingheating_energy_$id1
andtotal_energy_$id2
instead. That would avoid dynamic (and unpredictable) tables names.This is already pointed out by:
In addition, why ignoring
tableNamePrefix
whentableUseRealItemNames
is true? Prefixing all openhab tables (by "items" or whatever) would ensure that they won't be any naming clash with other objects in the schema (if I want to create other tables or views for example).Thanks!
Note: I am using OpenHAB 2.5.0 M5.
The text was updated successfully, but these errors were encountered: