Skip to content

Commit cb8a744

Browse files
committed
Merge branch 'PHP-8.3'
* PHP-8.3: [skip ci] update NEWS for GH-14457 [skip ci] update NEWS for GH-14457 Remove use of SDWORD and SWORD in ODBC extensions (GH-14457)
2 parents bbbe56e + b8a7cf9 commit cb8a744

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ext/pdo_odbc/odbc_stmt.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ enum pdo_odbc_conv_result {
3232
PDO_ODBC_CONV_FAIL
3333
};
3434

35-
static int pdo_odbc_sqltype_is_unicode(pdo_odbc_stmt *S, SWORD sqltype)
35+
static int pdo_odbc_sqltype_is_unicode(pdo_odbc_stmt *S, SQLSMALLINT sqltype)
3636
{
3737
if (!S->assume_utf8) return 0;
3838
switch (sqltype) {
@@ -287,7 +287,7 @@ static int odbc_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data *p
287287
{
288288
pdo_odbc_stmt *S = (pdo_odbc_stmt*)stmt->driver_data;
289289
RETCODE rc;
290-
SWORD sqltype = 0, ctype = 0, scale = 0, nullable = 0;
290+
SQLSMALLINT sqltype = 0, ctype = 0, scale = 0, nullable = 0;
291291
SQLULEN precision = 0;
292292
pdo_odbc_param *P;
293293
zval *parameter;
@@ -563,7 +563,7 @@ static int odbc_stmt_describe(pdo_stmt_t *stmt, int colno)
563563
pdo_odbc_stmt *S = (pdo_odbc_stmt*)stmt->driver_data;
564564
struct pdo_column_data *col = &stmt->columns[colno];
565565
RETCODE rc;
566-
SWORD colnamelen;
566+
SQLSMALLINT colnamelen;
567567
SQLULEN colsize;
568568
SQLLEN displaysize = 0;
569569

ext/pdo_odbc/php_pdo_odbc_int.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
typedef struct {
113113
char last_state[6];
114114
char last_err_msg[SQL_MAX_MESSAGE_LENGTH];
115-
SDWORD last_error;
115+
SQLINTEGER last_error;
116116
const char *file, *what;
117117
int line;
118118
} pdo_odbc_errinfo;
@@ -129,7 +129,7 @@ typedef struct {
129129
char *data;
130130
zend_ulong datalen;
131131
SQLLEN fetched_len;
132-
SWORD coltype;
132+
SQLSMALLINT coltype;
133133
char colname[128];
134134
unsigned is_long;
135135
unsigned is_unicode:1;

0 commit comments

Comments
 (0)