You are not logged in.
Pages: 1
sql :
SELECT ''All'' as field1, count(*) as field2,' sum(case when ret=0 then 1 else 0 end) as field3
in this case , will got a raise :
raise EVirtualDataSet.CreateUtf8('%.GetFieldData ColumnType=%', [self, TSqlDBFieldTypeToString(ColumnType)]);
(in procedure :InternalInitFieldDefs, mormot.db.rad.ui.sql.pas )
I suggest add :
....
mormot.db.core.ftNull,
mormot.db.core.ftUnknown:
dbtype := ftWideString;
....
Offline
aslite=TSQLModel.Create([
TSQLAuthor...],'root');
arest=TSQLRestServerDB.create(aslite,filename);
TSqlDBClientDataSet.Connection=TSQLDBSQLite3ConnectionProperties.Create(arest.DB);
Offline
Above is my project: unigui+rest.
Besides, I hit a pit. field:Text ,As records added,Sometimes it's a widestring, and later it's a widememo.
IgnoreColumnDataSize of TSqlDBClientDataSet has no effect.becase using create(AOwner: TComponent)...
so,i changed default value of IgnoreColumnDataSize in mormot.db.rad.ui.sql.pas
...
Offline
geting a raise when query empty,but normal when not empty.
Offline
to assigned a datetype use cast ,Can be regarded as a good idea
Offline
Pages: 1