Re: [SOCI-users] enum in postgres
but this sample works fine!: boost::int64_t id; std::string usertype; // (for enum type) soci::statement st = (sql.prepare << "SELECT " "id, " "my_enum_type " "FROM cheme1.test_table", soci::into(id),
[SOCI-users] enum in postgres
Hello, I have some problem with enum of postgres. Next code works fine (my_type is enum type ({'one', 'two'}) in database): std::string my_type; try { sql << "SELECT my_type " "FROM cheme1.test_table " "WHERE id = :id ", soci::into(my_type), soci::use(
