-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Postgresql getInsertId not working #10080
Comments
We have seen this in the past during phpunit test execution. |
I read about the unit tests some time ago. Was the problem solved? |
yes - but that was in the database schema migrtion code - I doubt that this i the case here as well. What are the steps to reproduce this? Maybe I can help debugging |
After opening index.php without loggin in, oC gives me the warning that I should use Postgresql >= 9.3. On the server 8.1 is running, can this be the problem? To reproduce, you only have to load the chat app with Postgresql. Mysql etc is working fine. |
@LEDfan FYI, i use Postgres 9.3.4 and get that exception. |
@fossxplorer okay thanks. Than this isn't a problem of 8.1. |
After enabling debug mode. I get the following stack trace:
If I dump the value of |
@bartv2 you wrote the adapter, maybe you know what's wrong here? |
let me debug this .... |
@LEDfan what do you expect as return? the table chat_och_users_online has no auto increment columns - lastInsertId can simply not be determined. 😉 |
@DeepDiver1975 thanks! So stupid of me..... |
I'd call it: shit happens! 😉 No worries! |
When testing the Chat app on postgresql I receive the following error:
This error is probably caused on the following line:
core/lib/private/db/adapterpgsql.php
Line 14 in 5ade595
And called by: https://github.com/owncloud/core/blob/master/lib/public/appframework/db/mapper.php#L118
This is called by the
insert
method on themapper
object here: https://github.com/owncloud/chat/blob/master/lib/och/commands/greet.php#L30The records are inserted:
Is this an error in oc/core, or am I doing something wrong?
cc @Raydiation @fossxplorer
The text was updated successfully, but these errors were encountered: