[odb-users] Problem with bi-directional one-to-many relationship

Louis Marascio marascio at gmail.com
Tue Apr 29 18:30:02 EDT 2014


Ok I've found my problem. The root cause is embarrassingly simple. I had my
id column defined as an unsigned long, but the PostgreSQL data type
mappings will map a PostgreSQL INTEGER to C++ int. By redefining the C++ id
type to be unsigned int the problem is resolved.

I'm not sure why the subtle overflow is happening, but regardless that has
solved the problem for me.

Thanks,

Louis

---
Louis R. Marascio
512-964-4569


More information about the odb-users mailing list