question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question about the TIME binding

See original GitHub issue

we are going to insert time 00:00 to database, but sometimes the data is incorrect after inserted to database.

we have LocalTime in the entity

@Column(name = "time")
private LocalTime time;

the insert statement from hibernate.show_sql log

insert into `TABLE` (`time`) values (?)

the bindings from the hibernate type trace log

[BasicBinder.java] - binding parameter [1] as [TIME] - [00:00]

but when the data inserted to the database, the data changed randomly, for example

id time
1 -838:59:59
2 00:00:20
3 00:00:00
4 00:02:57

May I know is there anything do after the binding and any ideas about it?

Environment

  • Version: 1.0.0.CR6
  • Database: ProxySQL 5.5.30 with MySQL 5.7.25-log

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:4
  • Comments:16 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
DavideDcommented, Jul 7, 2021

Nice, now I can see the exception. It seems to only occurs with the proxy in front of the server so I suspect it’s not a bug in Hibernate Reactive. I will check a bit better later.

1reaction
DavideDcommented, Jul 29, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

Time-Binding - LessWrong
The central question of Manhood of Humanity is: "What is a human?" Answering this question correctly could help us design a civilization ...
Read more >
Question: ______-time binding is the method of ... - Chegg
Question: ______-time binding is the method of binding instructions and data to memory performed by most general-purpose operating systems.
Read more >
java - Is it true to say that every run time binding was a static ...
As we can see from the results of the above code, the answer is yes. Static binding happens at compile time, dynamic binding...
Read more >
The neural binding problem(s) - PMC - NCBI
In its most general form, “The Binding Problem” concerns how items that are encoded by distinct brain circuits can be combined for perception,...
Read more >
Static vs Dynamic Binding in Java - GeeksforGeeks
The binding which can be resolved at compile time by the compiler is ... Tip: Geeks, now the question arises why binding of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found