Die Suche ergab 4 Treffer

von rolapp
Mittwoch 25. Januar 2017, 14:18
Forum: Datenbankprogrammierung mit Python
Thema: InterfaceError: Error binding parameter 0 - probably unsupported type.
Antworten: 5
Zugriffe: 1930

Re: InterfaceError: Error binding parameter 0 - probably unsupported type.

der ist local nur in der Funktion. Ich entwickele das script auch nur weite weil der Ursprüngliche Entwickler sich zurückgezogen hat. Mit dem c gebe ich dir recht ein eindeutiger Variablenname ist immer besser.

Danke für den Tipp
von rolapp
Mittwoch 25. Januar 2017, 14:08
Forum: Datenbankprogrammierung mit Python
Thema: InterfaceError: Error binding parameter 0 - probably unsupported type.
Antworten: 5
Zugriffe: 1930

Re: InterfaceError: Error binding parameter 0 - probably unsupported type.

@rolapp: Was nicht wirklich gut ist, ist das `channelKeys` offenbar Werte als Zeichenkette in eine SQL-Anfrage einsetzt, das sollte man nicht machen. Dafür sollte man Platzhalter im SQL verwenden und die Werte dann als zweites Argument von `execute()` übergeben. Wenn die Anzahl variabel ist, muss ...
von rolapp
Montag 23. Januar 2017, 21:08
Forum: Datenbankprogrammierung mit Python
Thema: InterfaceError: Error binding parameter 0 - probably unsupported type.
Antworten: 5
Zugriffe: 1930

Re: InterfaceError: Error binding parameter 0 - probably unsupported type.

Danke für den Tipp, da weis schon mal wo ich ansetzten muss
von rolapp
Montag 23. Januar 2017, 17:27
Forum: Datenbankprogrammierung mit Python
Thema: InterfaceError: Error binding parameter 0 - probably unsupported type.
Antworten: 5
Zugriffe: 1930

InterfaceError: Error binding parameter 0 - probably unsupported type.

Ich programmiere ein Plugin für das Mediencenter Kodi.

ich habe eine Routine die mir alle 5 Minuten die Datenbank überprüft und Updates einspielt. das funktioniert auch so weit ganz gut.
Frage ich jetzt mit einer anderen Funktion die Datenbank ab funktioniert das auch.
Ist aber meiner Routine ...