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:
parent
ed114ce057
commit
2a0238254f
@ -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 */
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user