mirror of
https://github.com/rbock/sqlpp11.git
synced 2026-01-07 05:30:44 -06:00
Fix serialization of PostgreSQL time data types (#504)
* Use a non-UTC timezone when testing the PostgreSQL timezone support. * Fix serialization of time of day values for PostgreSQL * Fix serialization of PostgreSQL values for "timestamp with time zone" and "time with time zone" fields.
This commit is contained in:
@@ -131,7 +131,8 @@ int TimeZone(int, char*[])
|
||||
{
|
||||
namespace sql = sqlpp::postgresql;
|
||||
|
||||
auto dbc = sql::make_test_connection();
|
||||
// We use a time zone with non-zero offset from UTC in order to catch serialization/parsing bugs
|
||||
auto dbc = sql::make_test_connection("+1");
|
||||
|
||||
dbc.execute("DROP TABLE IF EXISTS tabdatetime;");
|
||||
dbc.execute(
|
||||
|
||||
Reference in New Issue
Block a user