Search found 6 matches

by Milos
12.08.2022, 09:00
Forum: ZeosLib 7.2 Forum
Topic: Firebird + empty strings, a problem
Replies: 9
Views: 1038

Re: Firebird + empty strings, a problem

No problem and thank you for your work. Mormot souce code has since been modified to take this into consideration i.e. it checks the Len parameter in order to determine if string is actually empty so a Mormot example would no longer show a problem, but I think it's still worth making a change in Zeos.
by Milos
05.08.2022, 11:18
Forum: ZeosLib 7.2 Forum
Topic: Firebird + empty strings, a problem
Replies: 9
Views: 1038

Re: Firebird + empty strings, a problem

Can an admin move this to 7.2 please?

Also I can provide a sample project if needed, using Mormot, but not using zeos because I am not familiar enough with how it works sorry.
by Milos
19.07.2022, 11:49
Forum: ZeosLib 7.2 Forum
Topic: Firebird + empty strings, a problem
Replies: 9
Views: 1038

Re: Firebird + empty strings, a problem

Which function did you test?

GetPAnsiChar function that doesn't have Len parameter fixes the problem within itself by doing

Code: Select all

  ZSetString(P, Len, FRawTemp);
  Result := Pointer(FRawTemp);
but the one that does have Len param leaves the string content as-is.
by Milos
18.07.2022, 11:46
Forum: ZeosLib 7.2 Forum
Topic: Firebird + empty strings, a problem
Replies: 9
Views: 1038

Re: Firebird + empty strings, a problem

Also I am using FB 2.5 in case it matters.
by Milos
18.07.2022, 11:40
Forum: ZeosLib 7.2 Forum
Topic: Firebird + empty strings, a problem
Replies: 9
Views: 1038

Re: Firebird + empty strings, a problem

I appologize, this should be in 7.2 forum, I tried to find a way to contact an admin to tell them but I couldn't find a link
by Milos
16.07.2022, 19:51
Forum: ZeosLib 7.2 Forum
Topic: Firebird + empty strings, a problem
Replies: 9
Views: 1038

Firebird + empty strings, a problem

Hi all, first post so let me just start by saying thank you for your library! I stumbled upon a problem when looking at a table with some string fields empty (not null, just empty) Actual data in DB: ID Name1 Name2 1 'A' '1' 2 'B' '' 3 '' '3' 4 'D' '4' mormot (or zeos) returns: {"ID":1,&qu...