-
Notifications
You must be signed in to change notification settings - Fork 28
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
Compatibility with PostgreSQL #8
Comments
PostgreSQL support is allready planed and listed in the roadmap: https://github.com/graviox/Roundcube-CardDAV/wiki/Roadmap |
As far as I can see one just has to create the proper database objects. CREATE TABLE IF NOT EXISTS "carddav_server" ( CREATE TABLE IF NOT EXISTS "carddav_contacts" ( CREATE INDEX "user_id" ON "carddav_contacts" ("user_id"); |
Thanks for your help! I'll try it by my self and if all is working fine I will push that within the next major, maybe already in an earlier minor, release. |
I've downloaded CardDAV today. I think it's the recent version: head -n3 CHANGELOGChanges from v0.4 to v0.5
|
Yep, that is the latest version so your SQL statements should be work with this version. |
Just added a second address book to an existing account and new additional user within ownCloud/Roundcube. |
Sounds great. Thanks again. I'll add your postgreSQL statements to the repository and mention you in the readme! |
I had to made some additional changes: Roundcube assumes sequence for last inserted id of table 'carddav_contacts' is named 'carddav_contacts'. I decided to rename the sequence accordantly to the other existing sequences:
Further I had to make the sequence name known to Roundcube:
Another issue i noticed was that a removed contact will be displayed in the list of addresses again on reload/refresh until a synchronization is executed. Don't know if this is Postgres related. |
Thanks for the changes. Do you want to join the development of Roundcube CardDAV and take care of the PostgreSQL integration? |
Why not. But my time is very limited. |
I've added you to the repository team and granted you pull and push rights. You can now add the postgreSQL changes on your own. It's okay that your time is very limited. There shouldn't be very often changes on the SQL schemes. |
Hi, we are using carddav 0.5.1 and postgresql 9.1.4. When i try to add a contact, i get this error message : PHP Fatal error: Call to undefined method rcube_mdb2::like() in /var/www/html/roundcube/plugins/carddav/carddav_addressbook.php on line 327 Then, i changed "like" with "ilike" at line 327 in carddav_addressbook.php. This time i get this error: [24-Aug-2012 11:26:50] MDB2 Error: invalid number (-11): _doQuery: [Error message: Could not execute statement] [24-Aug-2012 11:26:50 +0300]: DB Error: MDB2 Error: invalid number Query: _doQuery: [Error message: Could not execute statement] [Last executed query: EXECUTE mdb2_statement_pgsql_8d21fb52dc3fcf5f3b21216f8f97b246e6f8cdea1 ('5', 'f')] [Native message: ERROR: invalid input syntax for integer: "f" LINE 1: ...t_pgsql_8d21fb52dc3fcf5f3b21216f8f97b246e6f8cdea1 ('5', 'f') ^] in /var/www/html/roundcube/program/include/rcube_mdb2.php on line 727 (POST /roundcube/?_orig_source=carddav_addressbook3?_task=addressbook&_action=save) After making the changes mentioned in this comment -> #8 (comment) i get the same error message: [24-Aug-2012 11:31:56] MDB2 Error: invalid number (-11): _doQuery: [Error message: Could not execute statement] [24-Aug-2012 11:31:56 +0300]: DB Error: MDB2 Error: invalid number Query: _doQuery: [Error message: Could not execute statement] [Last executed query: EXECUTE mdb2_statement_pgsql_8449cd6a3da508832b580fe0c9783a304fb93563b ('5', 'f')] [Native message: ERROR: invalid input syntax for integer: "f" LINE 1: ...t_pgsql_8449cd6a3da508832b580fe0c9783a304fb93563b ('5', 'f') ^] in /var/www/html/roundcube/program/include/rcube_mdb2.php on line 727 (POST /roundcube/?_orig_source=carddav_addressbook3?_task=addressbook&_action=save) How can i solve this issue? |
did someone fix this issue? I've got the exactly same issue: [22-Mar-2013 00:47:38 +0000]: DB Error: MDB2 Error: invalid number Query: _doQuery: [Error message: Could not execute statement] [Last executed query: EXECUTE mdb2_statement_pgsql_13a419c53ce5b00f9c6badca11033ae894e329eb6a ('4', 'f')] [Native message: ERROR: invalid input syntax for integer: "f" LINE 1: ..._pgsql_13a419c53ce5b00f9c6badca11033ae894e329eb6a ('4', 'f') ^] in /usr/local/www/roundcube/program/include/rcube_mdb2.php on line 727 (POST /webmail/?_orig_source=carddav_addressbook18?_task=addressbook&_action=save) |
Hello.
Because Roundcube is compatible with PostgreSQL, I think it would be a good idea to make this plugin compatible too.
Thank you
The text was updated successfully, but these errors were encountered: