File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -287,37 +287,28 @@ static int test_frm_bug(MYSQL *mysql)
287
287
}
288
288
289
289
rc = mysql_query (mysql , "SHOW TABLE STATUS like 'test_frm_bug'" );
290
- if ( rc )
291
- fclose (test_file );
290
+
291
+ fclose (test_file );
292
292
check_mysql_rc (rc , mysql );
293
293
294
294
result = mysql_store_result (mysql );
295
- if (!result )
296
- fclose (test_file );
297
295
FAIL_IF (!result , "Invalid result set" );/* It can't be NULL */
298
296
299
297
rc = 0 ;
300
298
while (mysql_fetch_row (result ))
301
299
rc ++ ;
302
- if (rc != 1 )
303
- fclose (test_file );
304
300
FAIL_UNLESS (rc == 1 , "rowcount != 1" );
305
301
306
302
mysql_data_seek (result , 0 );
307
303
308
304
row = mysql_fetch_row (result );
309
- if (!row )
310
- fclose (test_file );
311
305
FAIL_IF (!row , "couldn't fetch row" );
312
306
313
- if (row [17 ] != 0 )
314
- fclose (test_file );
315
307
FAIL_UNLESS (row [17 ] != 0 , "row[17] != 0" );
316
308
317
309
mysql_free_result (result );
318
310
mysql_stmt_close (stmt );
319
311
320
- fclose (test_file );
321
312
mysql_query (mysql , "drop table if exists test_frm_bug" );
322
313
unlink (test_frm );
323
314
return OK ;
You can’t perform that action at this time.
0 commit comments