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

Postgres Error #61

Open
basti122303 opened this issue Aug 30, 2013 · 1 comment
Open

Postgres Error #61

basti122303 opened this issue Aug 30, 2013 · 1 comment

Comments

@basti122303
Copy link

Hello,
i use davical 1.1.1-1 on debian wheezy and the Roundcube CardDAV plugin 0.5.1
in Roundcube Webmail 0.9.3 and Postgres 8.4 as database.

First of all I do this fix: #29

After that I get the following postgres error:

FEHLER: ungültige Eingabesyntax für ganze Zahl: »«
ZEILE 8: carddav_contact_id = ' '
********** Fehler **********

In english: syntax error @ LINE8: carddav_contact_id = ''

So I change the following in carddav_addressbook.php:

186 $query = "
187 SELECT
188 *
189 FROM
190 ".get_table_name('carddav_contacts')."
191 WHERE
192 user_id = ?
193 ";
194 // AND
195 // carddav_contact_id = ?
196 // ";

I don't know what this line is doing but now it works for me.
It seem that there is no carddav_contact_id available.
Please fix this.

@basti122303
Copy link
Author

It seem that this lines are usefull for search / delete entry but insert a contact return
carddav_contact_id = ''
^ (SQL Query:
SELECT
*
FROM
carddav_contacts
WHERE
user_id = '1'

        AND
            carddav_contact_id = ''
    ) in /.../program/lib/Roundcube/rcube_db.php on line 416 (POST /?_orig_source=carddav_addressbook1?_task=addressbook&_action=save)

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

1 participant