You are not logged in.
Pages: 1
I am trying to recode my app, migrating the SQLite usage code from ZeosLib to mORMot. All right, until I realize that sometimes, when there are empty fields, the SQL SELECT returns the value of that empty field, with the value of the following fields, example:
Suppose:
Field1 = 'Value 1'
Field2 = ''
Field3 = 34
Field4 = 'Blue'
SELECT Field1, Field2, Field3, Field4 FROM Table 1
Field1 = 'Value 1'
Field2 = '34Blue'
Field3 = 34
Field4 = 'Blue'
Sometimes, when the number of records returned by the SELECT is greater than one, the empty fields remain correctly empty.
Offline
The code is the same of example # 17, the only change is the database that I open. I still working with example # 17 until I hace all that I need and then migrate all my original code to mORMot. I'll try to extract some piece of databse and try to reproduce this error. I use Delphi Berlin.
Offline
I don't understand you. I use the same code of example # 17. It use this datasource (ds1: TDataSource;)
Offline
Please give us some screen shot of this
Offline
Screenshot?
Offline
How can I send you a screenshot from my PC?
Offline
Hello?
Offline
Use a picture upload web site, e.g. https://imgur.com/ or any other, then put a "img" link in the forum.
Offline
Look at the Caption bar. This is the result of showing the content of the field that is really empty, but it shows me the union of the previous field next to the next one. Look at the Grid: I am showing the field "Equipo" and it shows me the union of the "CI" field next to the following "DatosClin".
Last edited by Sapiem (2018-01-16 13:04:26)
Offline
Ok, I'll check at home. Sorry, but I'm doctor and I have a lot of professional work. Thanks for all.
Offline
I try but the mORMotVCL.pas unit never si used by code.
Offline
Using Table (sample 12 - SynDB Explorer) plus ToDataSet function solve the problem.
Offline
Pages: 1