8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 23:23:04 +01:00

Make sqlstate a public type like status vector.

This commit is contained in:
robocop 2008-02-28 09:35:49 +00:00
parent ed114ce057
commit 2a0238254f
2 changed files with 7 additions and 2 deletions

View File

@ -64,6 +64,10 @@ typedef intptr_t ISC_STATUS;
#define ISC_STATUS_LENGTH 20
typedef ISC_STATUS ISC_STATUS_ARRAY[ISC_STATUS_LENGTH];
/* SQL State as defined in the SQL Standard. */
#define ISC_SQLSTATE_SIZE 6
typedef char ISC_SQLSTATE_STRING[ISC_SQLSTATE_SIZE];
/******************************************************************/
/* Define type, export and other stuff based on c/c++ and Windows */
/******************************************************************/
@ -140,4 +144,5 @@ typedef struct GDS_QUAD_t ISC_QUAD;
#define isc_quad_high gds_quad_high
#define isc_quad_low gds_quad_low
#endif // INCLUDE_TYPES_PUB_H
#endif /* INCLUDE_TYPES_PUB_H */

View File

@ -190,7 +190,7 @@ void DYN_error(bool status_flag,
return;
TEXT error_buffer[BUFFER_MEDIUM];
TEXT sqlstate[6];
ISC_SQLSTATE_STRING sqlstate;
if (number)
{