Skip to content

Commit

Permalink
Adjustments to pass dartfmt checks
Browse files Browse the repository at this point in the history
  • Loading branch information
bobjackman committed Apr 18, 2019
1 parent 3dc7af8 commit 45e2d0a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
7 changes: 5 additions & 2 deletions lib/src/prepared_statements/binary_data_packet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@ import '../results/row.dart';
class BinaryDataPacket extends Row {
final Logger log = new Logger("BinaryDataPacket");

BinaryDataPacket.forTests(List _values) { values = _values; }
BinaryDataPacket.forTests(List _values) {
values = _values;
}

BinaryDataPacket(Buffer buffer, List<Field> fieldPackets) {
buffer.skip(1);
var nulls = buffer.readList(((fieldPackets.length + 7 + 2) / 8).floor().toInt());
var nulls =
buffer.readList(((fieldPackets.length + 7 + 2) / 8).floor().toInt());
log.fine("Nulls: $nulls");
var nullMap = new List<bool>(fieldPackets.length);
var shift = 2;
Expand Down
2 changes: 2 additions & 0 deletions lib/src/query/standard_data_packet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ class StandardDataPacket extends Row {
var s = utf8.decode(list);
return s;
break;
default:
return null;
}
}

Expand Down
3 changes: 2 additions & 1 deletion test/integration/one_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,8 @@ void main() {
expect(v2, equals(v1));

// Binary packet
results = await conn.query('select atinyint from test1 WHERE ? = ?', [1, 1]);
results =
await conn.query('select atinyint from test1 WHERE ? = ?', [1, 1]);
int v3 = results.first.fields['atinyint'];
int v4 = results.first['atinyint'];
expect(v3, isNotNull);
Expand Down

0 comments on commit 45e2d0a

Please sign in to comment.