Skip to content

Commit dd904fc

Browse files
committed
added interval test 100k years and -100k years
1 parent d58aa4f commit dd904fc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/encoding_test.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,10 @@ void main() {
189189
Duration(days: 1, minutes: 15), PostgreSQLDataType.interval);
190190
await expectInverse(
191191
-Duration(days: 1, seconds: 5), PostgreSQLDataType.interval);
192+
await expectInverse(Duration(days: 365 * 100000, microseconds: 1),
193+
PostgreSQLDataType.interval);
194+
await expectInverse(-Duration(days: 365 * 100000, microseconds: 1),
195+
PostgreSQLDataType.interval);
192196
try {
193197
await conn.query('INSERT INTO t (v) VALUES (@v:interval)',
194198
substitutionValues: {'v': 'not-interval'});

0 commit comments

Comments
 (0)