Hi
If I have command set to 'insert into employees(id,name) values(@id,@name)
the fixstring method changes the sql to 'insert into employees(id,name) values($1$2)
It looks like it shouldnt inc after calling aReplacer.
Cheers,
John
Hi
If I have command set to 'insert into employees(id,name) values(@id,@name)
the fixstring method changes the sql to 'insert into employees(id,name) values($1$2)
It looks like it shouldnt inc after calling aReplacer.
Cheers,
John
This seems to work
while i < aString.Length do begin
var callInc := true;
case aString[i] of
'@': if lQuoteChar <> #0 then lSQ.Append(aString[i]) else begin
inc(i);
var lStart := i;
while i < aString.Length do begin
if aString[i] in ['a'..'z', 'A'..'Z', '0'..'9', '_'] then begin
inc(i);
end else break;
end;
lSQ.Append(aReplacer(aString.Substring(lStart, i - lStart)));
callInc := false;
end;
'"', '`', '''': begin
if lQuoteChar = aString[i] then lQuoteChar := #0 else
if lQuoteChar = #0 then lQuoteChar := aString[i];
lSQ.Append(aString[i])
end;
else
lSQ.Append(aString[i])
end;
if(callInc)then
begin
inc(i);
end;
end;
This is what I think is wrong
thanx, can you submit pull requests for these?
Thanks
Nice one! Thanks!
Besides these changes everything working well for you with IslandDB now?
Yes thanks