diff --git a/src/isql/isql.epp b/src/isql/isql.epp index 1176746f77..a6adb6c147 100644 --- a/src/isql/isql.epp +++ b/src/isql/isql.epp @@ -1164,22 +1164,7 @@ bool ISQL_errmsg(Firebird::IStatus* st) } } - /* - if (state & Firebird::IStatus::STATE_WARNINGS) - { - const ISC_STATUS* w = st->getWarnings(); - TEXT* err = errbuf; - unsigned es = sizeof(errbuf); - while (fb_interpret(err, es, &w)) { - STDERROUT(errbuf); - if (err == errbuf) - { - *err++ = '-'; - --es; - } - } - } - */ + ISQL_warning(fbStatus); if (Input_file) { diff --git a/src/isql/isql_proto.h b/src/isql/isql_proto.h index 906e161eb2..8a3e71b013 100644 --- a/src/isql/isql_proto.h +++ b/src/isql/isql_proto.h @@ -35,7 +35,7 @@ void ISQL_array_dimensions(const TEXT*); bool ISQL_dbcheck(); void ISQL_disconnect_database(bool); bool ISQL_errmsg(Firebird::IStatus*); -void ISQL_warning(ISC_STATUS*); +void ISQL_warning(Firebird::CheckStatusWrapper*); void ISQL_exit_db(); // CVC: Not found. //int ISQL_extract(TEXT*, int, FILE*, FILE*, FILE*);