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

owncloud 5 RC1 pgsql Export User Account #2071

Closed
hellweiss opened this issue Mar 4, 2013 · 6 comments · Fixed by owncloud-archive/apps#683
Closed

owncloud 5 RC1 pgsql Export User Account #2071

hellweiss opened this issue Mar 4, 2013 · 6 comments · Fixed by owncloud-archive/apps#683
Assignees
Labels
Milestone

Comments

@hellweiss
Copy link

Hi,

exporting a User Account hangs with pgsql Database:

{"app":"PHP","message":"SQLSTATE[42883]: Undefined function: 7 FEHLER: Operator existiert nicht: integer ~~ unknown\nLINE 1: ...LECT * FROM "oc_calendar_objects" WHERE "calendarid" LIKE $1\n ^\nHINT: Kein Operator stimmt mit dem angegebenen Namen und den Argumenttypen \u00fcberein. Sie m\u00fcssen m\u00f6glicherweise ausdr\u00fcckliche Typumwandlungen hinzuf\u00fcgen. at /var/www/owncloud/lib/db.php#963","level":4,"time":1362398005}

Looks like the same error we had with user_ldap app not sure.

@ghost ghost assigned eMerzh Mar 4, 2013
@karlitschek
Copy link
Contributor

@eMerzh Do you have an idea? :-)

@eMerzh
Copy link
Member

eMerzh commented Mar 4, 2013

i look a this tonight when i'm back home ... but yeah it looks like the same kind of problem...
(btw @hellweiss ... it's easier if errors are in english :p fortunately i have google translate :p )

@hellweiss
Copy link
Author

Sorry, that's what I got in the logs, how do I switch ?!?
I guess, the Import Account needs some love too. Will test, when the Export works.

@BernhardPosselt
Copy link
Contributor

Quick grep: calendar/appinfo/migrate.php:

$query = $this->content->prepare( 'SELECT * FROM `calendar_objects` WHERE `calendarid` LIKE ?' );

Very likely missing a wildcard % in the argument.

SELECT * FROM Persons
WHERE City LIKE '%s'

I dont think LIKE is the sql that you want to use here, id use =

Also you cant use LIKE with integers since it doesnt make sense. Thats the error OP is getting

@BernhardPosselt
Copy link
Contributor

cc @georgehrke

@eMerzh
Copy link
Member

eMerzh commented Apr 9, 2013

@DeepDiver1975 can we close this?

@lock lock bot locked as resolved and limited conversation to collaborators Aug 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants