File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
integration-tests/relations/lib Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -25,4 +25,4 @@ class C {
2525
2626 String text;
2727 C (this .text);
28- }
28+ }
Original file line number Diff line number Diff line change @@ -208,8 +208,7 @@ class CodeChunks {
208208 // constructor anyway - there's no Int8List.generate() factory.
209209 fbReader = 'fb.ListReader<int>(fb.Int8Reader())' ;
210210 if (p.fieldIsNullable) {
211- preLines.add (
212- 'final $valueVar = ${readFieldOrNull ()};' );
211+ preLines.add ('final $valueVar = ${readFieldOrNull ()};' );
213212 return '$valueVar == null ? null : ${p .fieldType }.fromList($valueVar )' ;
214213 } else {
215214 return '${p .fieldType }.fromList(${readFieldNonNull ('[]' )})' ;
@@ -229,8 +228,7 @@ class CodeChunks {
229228 }
230229 if (p.fieldType == 'DateTime' ) {
231230 if (p.fieldIsNullable) {
232- preLines
233- .add ('final $valueVar = ${readFieldOrNull ()};' );
231+ preLines.add ('final $valueVar = ${readFieldOrNull ()};' );
234232 if (p.type == OBXPropertyType .Date ) {
235233 return '$valueVar == null ? null : DateTime.fromMillisecondsSinceEpoch($valueVar )' ;
236234 } else if (p.type == OBXPropertyType .DateNano ) {
Original file line number Diff line number Diff line change @@ -196,6 +196,9 @@ class EntityResolver extends Builder {
196196 prop.relationTarget = relTargetName;
197197 prop.flags | = OBXPropertyFlags .INDEXED ;
198198 prop.flags | = OBXPropertyFlags .INDEX_PARTIAL_SKIP_ZERO ;
199+
200+ // IDs must not be tagged unsigned for compatibility reasons
201+ prop.flags & = ~ OBXPropertyFlags .UNSIGNED ;
199202 }
200203
201204 // Index and unique annotation.
You can’t perform that action at this time.
0 commit comments