Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PostgresSQL lastInsertId error #40

Open
tuliobraga opened this issue Sep 15, 2013 · 1 comment
Open

PostgresSQL lastInsertId error #40

tuliobraga opened this issue Sep 15, 2013 · 1 comment

Comments

@tuliobraga
Copy link

I found a bug with postgreSQL. If you're using postgreSQL's driver, when Respect\Mapper::checkNewIdentity calls PDO::lastInsertId(), it must pass the sequence name as a parameter to this method. Currently, the pk column is setted with postgreSQL OID.

@nickl- nickl- mentioned this issue Nov 8, 2013
4 tasks
@nickl-
Copy link
Member

nickl- commented Nov 8, 2013

@tuliobraga Excuse the late response and thank you for bringing this to our attention.

Please have a look at #44 and give us a short description of your environment and include the results of the unit tests if you can get them to run against PostgreSQL (they use SQLite AFAIK.

We also need to get an idea what changes are required to the tests to make them work against PostgreSQL.

How did you deal with the postgres schemas?

Did you notice any other problems we should look at?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants