File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 11import 'dart:ffi' ;
22import "dart:typed_data" show Uint8List;
33import "package:ffi/ffi.dart" show allocate, free;
4-
54import '../common.dart' ;
65
6+ // Disable some linter rules for this file
7+ // ignore_for_file: camel_case_types
8+
79// Note: IntPtr seems to be the the correct representation for size_t: "Represents a native pointer-sized integer in C."
810
911/// Represents the following C struct:
Original file line number Diff line number Diff line change @@ -34,6 +34,9 @@ class QueryBuilder<T> {
3434 }
3535
3636 QueryBuilder <T > order (QueryProperty p, {int flags = 0 }) {
37+ if (p._entityId != _entityId) {
38+ throw Exception ("Passed a property of another entity: ${p ._entityId } instead of ${_entityId }" );
39+ }
3740 _createBuilder ();
3841 checkObx (bindings.obx_qb_order (_cBuilder, p._propertyId, flags));
3942 return this ;
You can’t perform that action at this time.
0 commit comments