wenn ich folgenden SELECT Befehl direkt auf dem SQL Server ausführe, klappt es. Wenn ich ihn allerdings über Xbase++ ausführe, kommt ein Fehler. Kann mir jemand sagen, wieso?
cTour := "SELECT * FROM "+cDbTour+" ORDER BY TIME, KGA, regexp_replace(PZ, '[^0-9]', '', 'g')::int"
Fehlermeldung:
oError:args :
-> VALTYPE: U VALUE: NIL
oError:canDefault : Y
oError:canRetry : N
oError:canSubstitute: Y
oError:cargo : {NIL, -1, syntax error at or near "NULL"
LINE 1: ...DER BY TIME, KGA, regexp_replace(PZ, '[^0-9]', '', 'g')NULL;
^}
oError:description : syntax error at or near "NULL"
LINE 1: ...DER BY TIME, KGA, regexp_replace(PZ, '[^0-9]', '', 'g')NULL;
^
oError:filename :
oError:genCode : 9001
oError:operation : ABSTRACTSQLSTATEMENTBUILDER:EXECUTEQUERY
oError:osCode : 0
oError:severity : 2
oError:subCode : -1
oError:subSystem : Remote SQL dacSession
oError:thread : 1
oError:tries : 0