I have a problem with my project and propel orm. When I use find() propel generate a query with 0 instead of false and my postgres give me an exception. Example:
...WHERE documento.DOCUMENTO_ELIMINADO=0...
I hope you can help me please. Thanks.
I have a problem with my project and propel orm. When I use find() propel generate a query with 0 instead of false and my postgres give me an exception. Example:
...WHERE documento.DOCUMENTO_ELIMINADO=0...
I hope you can help me please. Thanks.
Did you rebuild your model? The front-page for the Propel ORM suggests that's necessary when you change databases.
In PostgreSQL, comparing a boolean and an integer fails:
regress=# SELECT 0 == 'f'::boolean;
ERROR: operator does not exist: integer == boolean
LINE 1: SELECT 0 == 'f'::boolean;
^
so I'm guessing your ORM thinks it's talking to MySQL. Guessing, because you've provided very little information to go on.
Otherwise: More information required. Queries, exact text of error messages, table definitions, etc.