Skip to content
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

trouble accessing dates via Java API #101

Open
c-dilks opened this issue Oct 27, 2023 · 0 comments
Open

trouble accessing dates via Java API #101

c-dilks opened this issue Oct 27, 2023 · 0 comments

Comments

@c-dilks
Copy link
Member

c-dilks commented Oct 27, 2023

java.sql.Time does not provide the date (getDate() is deprecated); thus it does not seem to be possible to get the date from a Time condition:

fun toTime(): java.sql.Time {

Reproducer in groovy:

import org.rcdb.RCDB
def db = RCDB.createProvider('mysql://[email protected]/rcdb')
db.connect()
def result = db.getCondition(5052, 'run_start_time')
println "time = ${result.toTime()}"
println "date = ${result.toTime().getDate()}" // fails

Is there some other way to get the date with the Java API?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant