Autor Beitrag
jjturbo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 516

Win2000 prof., WinXP prof.
D4 Stand., D5 Prof, D7 Prof, D2007 Prof.
BeitragVerfasst: Fr 05.07.13 13:10 
Moin Forum,

wenn ich folgenden Codeschnipsel ausführe bekomme ich eine Exception:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
procedure TForm1.Button4Click(Sender: TObject);
begin
  ZTable1.First;
  ZTable1.Edit;
  ZTable1.FieldByName('posimstapel').AsInteger := 1;
  ZTable1.Post;
end;

[ODBC Firebird Driver]
[Firebird] Dynamic SQL Error
SQL error code = -104
Token unknown - line 1, column 8

Mit SQL funktioniert es:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
procedure TForm1.Button5Click(Sender: TObject);
var  SQLText: string;
begin
  SQLText := 'UPDATE plattendaten SET posimstapel=3 WHERE id=1';
  ZQuery1.SQL.SetText(PChar(SQLText));
  ZQuery1.ExecSQL;
end;


Mein Firebird Server liegt hier im LAN, angesprochen über eine ODBC Quelle.
Was mache ich denn falsch?

Gruß Oliver

_________________
Windows XP: Für die einen nur ein Betriebssystem - für die anderen der längste Virus der Welt...
EgonHugeist
Hält's aus hier
Beiträge: 11
Erhaltene Danke: 1



BeitragVerfasst: Sa 07.09.13 00:56 
Schaut soweit alles jut aus. Bis auf die ADO Sache. Habe 'ne Mange an ADO geändert, ist jedoch dezeit nur via SVN erhältlich.

7.0.5-stable und 7.1.1-rc kommen die nächste Woche..

Gruß Michael