note status: "See notice at end of class."; Date: "$Date$" Revision: "$Revision$" Product: EiffelStore Database : All_Bases class DB_STATUS_USE inherit HANDLE_USE feature {NONE} -- Status report exhausted: BOOLEAN -- Is there any more resulting row? do Result := not handle.status.found end is_connected: BOOLEAN -- Has connection to the database server succeeded? do Result := handle.status.is_connected end error_code: INTEGER -- Error code of last transaction do Result := handle.status.error_code end is_ok: BOOLEAN -- Is last SQL statement ok ? do Result := error_code = 0 end error_message: STRING -- SQL error message prompted by database server do Result := handle.status.error_message end warning_message: STRING -- SQL warning message prompted by database server do Result := handle.status.warning_message end feature {NONE} -- Status setting reset -- Reset `is_ok', `error_code_stored',`error_message_stored' and `warning_message' after error occurred. --| Perform this operation through `DB_CONTROL'. do handle.status.reset ensure is_ok: is_ok no_error: error_code = 0 no_message_error: error_message.is_equal ("") no_message_warning: warning_message.is_equal ("") end note copyright: "Copyright (c) 1984-2006, Eiffel Software and others" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" source: "[ Eiffel Software 356 Storke Road, Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end -- class DB_STATUS_USE