mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 13:10:44 +00:00
Switch to bind Instants as strings instead of timestamps - seems to fix some timezone issues.
This commit is contained in:
@ -685,7 +685,7 @@ public class QueryManager
|
|||||||
}
|
}
|
||||||
else if(value instanceof Double d)
|
else if(value instanceof Double d)
|
||||||
{
|
{
|
||||||
bindParam(statement, index, d.doubleValue());
|
bindParam(statement, index, d);
|
||||||
return (1);
|
return (1);
|
||||||
}
|
}
|
||||||
else if(value instanceof String s)
|
else if(value instanceof String s)
|
||||||
@ -739,9 +739,7 @@ public class QueryManager
|
|||||||
}
|
}
|
||||||
else if(value instanceof Instant i)
|
else if(value instanceof Instant i)
|
||||||
{
|
{
|
||||||
long epochMillis = i.toEpochMilli();
|
statement.setString(index, i.toString());
|
||||||
Timestamp timestamp = new Timestamp(epochMillis);
|
|
||||||
statement.setTimestamp(index, timestamp);
|
|
||||||
return (1);
|
return (1);
|
||||||
}
|
}
|
||||||
else if(value instanceof LocalDate ld)
|
else if(value instanceof LocalDate ld)
|
||||||
|
Reference in New Issue
Block a user