-
Notifications
You must be signed in to change notification settings - Fork 90
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
Datetime precision issue #95
Labels
Comments
PNixx
added a commit
that referenced
this issue
Jul 21, 2023
Thanks for fix, but i have upgraded gem to 0.5.15 and this doesn't work :( INSERT INTO tests (created_at) VALUES ('2023-06-10 08:41:57') My Gemfile.lock:
|
I checked, it not working with Rails 7, working with only Rails 6 |
Please, check from rails_7 branch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have gems clickhouse 0.1.10, clickhouse-activerecord 0.5.14, pg 1.4.6 and rails 7.0.4.3. ClickHouse server version 23.4.2.11, postgresql server 15.3.
My clickhouse table ddl:
My model is Test. When i create record like:
this produces sql query:
As you can see there is no precision (microseconds).
I can define rails time db format like this:
then if i create record this will produce correct result:
But this broke my PostgreSQL models sql queries! For example if i have model PgTest and if i create record like this:
this will produce incorrect precision sql query in my postgresql database (duplicate precision):
Setting Time db format in callback around_create - not an option for me.
The text was updated successfully, but these errors were encountered: