![]() |
SQL Update macht Probleme
Hallo Leute :hi:
mein SQL-Update funzt eigentlich, bis auf einen Datensatz (eingelesen hab ich die Daten mal mit den IB-Kompos), der "°" enthält. Kann es an den ZEOS-Kompos liegen? Hier mal ein paar Infos: DB: Firebird 1.5 DB-Kompos: ZEOS 6.1.5-stable build at 2004-04-29 07:03:04 SQL-Code:
SQL-Code:
Programmcode:
update SONG set
SONG.SONG = :SONG, SONG.ARTIST_ID = (select ARTIST.ID from ARTIST where ARTIST.ARTIST =:ARTIST), SONG.GENRE_ID = (select GENRE.ID from GENRE where GENRE.GENRE = :GENRE), SONG.LANGUAGE_ID = (select LANGUAGE.ID from LANGUAGE where LANGUAGE.LANGUAGE = :LANGUAGE) where SONG.ID = :OLD_ID
Delphi-Quellcode:
Fehlermeldung:
//record vom vst
if QueryRec.Changed then begin with DMMedia.DS_UpdLibrary do begin if Active then Close; Params.ParamByName('SONG').AsString := QueryRec.ASongName; Params.ParamByName('ARTIST').AsString := QueryRec.AArtistName; Params.ParamByName('GENRE').AsString := QueryRec.AGenre; Params.ParamByName('LANGUAGE').AsString := QueryRec.ALanguage; Params.ParamByName('OLD_ID').AsInteger := QueryRec._ID; ExecSQL; end; with DMMedia.DS_UpdDetails do begin if Active then Close; Params.ParamByName('BPM').AsInteger := QueryRec.ABPM; Params.ParamByName('RELEASE_S').AsDate := QueryRec.ARelease; Params.ParamByName('SONG_ID').AsInteger := QueryRec._ID; ExecSQL; end; QueryRec.Changed := False; Dec(ChangedCount); Inc(RealyChanged); end; Zitat:
|
Re: SQL Update macht Probleme
OK, der gleiche Code mit einem IBQuery funktioniert. Also liegt es an den ZEOS-Komponenten. Es ist halt nichts perfekt :roll:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 10:31 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz