@@ -46,6 +46,7 @@ void main() {
4646 CREATE TABLE test_data4 (
4747 id INT AUTO_INCREMENT PRIMARY KEY,
4848 blob_col BLOB,
49+ text_col TEXT,
4950 json_col JSON
5051 );
5152 ''' );
@@ -54,6 +55,8 @@ void main() {
5455 test ('Execute: insert data ' , () async {
5556 await db.insert (table: 'test_data4' , insertData: {
5657 'json_col' : {'json' : 'json_value' },
58+ 'text_col' :
59+ 'You can\' t have a better tomorrow if you are thinking about yesterday all the time.' ,
5760 'blob_col' : Uint8List .fromList ([1 , 2 , 3 , 4 , 5 ]),
5861 });
5962 });
@@ -62,6 +65,7 @@ void main() {
6265 table: 'test_data4' ,
6366 fields: '*' ,
6467 );
68+ print (req1['json_col' ]);
6569 expect (req1['json_col' ]['json' ], equals ('json_value' ));
6670 });
6771 test ('Execute: getOne blob' , () async {
@@ -70,8 +74,21 @@ void main() {
7074 fields: '*' ,
7175 excludeFields: 'json_col' ,
7276 );
77+ print (req1['blob_col' ]);
7378 expect (req1['blob_col' ], equals ([1 , 2 , 3 , 4 , 5 ]));
7479 });
80+ test ('Execute: getOne text' , () async {
81+ var req1 = await db.getOne (
82+ table: 'test_data4' ,
83+ fields: '*' ,
84+ excludeFields: 'text_col' ,
85+ );
86+ print (req1['text_col' ]);
87+ expect (
88+ req1['text_col' ],
89+ equals (
90+ 'You can\' t have a better tomorrow if you are thinking about yesterday all the time.' ));
91+ });
7592 test ('Execute: drop table ' , () async {
7693 await db.query ("DROP TABLE IF EXISTS `test_data4`" );
7794 });
0 commit comments