1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
|
From 97041c5937f9699623fb17871e833efaa5b95d64 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Tue, 9 Jul 2019 09:01:38 +0200
Subject: [PATCH] fix for 7.4
---
messages/mysqlx_resultset__data_row.cc | 24 +++++++++---------
mysqlx_class_properties.cc | 8 ++++++
mysqlx_class_properties.h | 4 +++
xmysqlnd/xmysqlnd_protocol_dumper.cc | 14 +++++------
xmysqlnd/xmysqlnd_rowset_fwd.cc | 6 ++---
xmysqlnd/xmysqlnd_session.cc | 2 +-
xmysqlnd/xmysqlnd_stmt.cc | 4 +--
xmysqlnd/xmysqlnd_stmt_execution_state.cc | 8 +++---
xmysqlnd/xmysqlnd_stmt_result.cc | 2 +-
xmysqlnd/xmysqlnd_wireprotocol.cc | 30 +++++++++++------------
xmysqlnd/xmysqlnd_zval2any.cc | 8 +++---
11 files changed, 61 insertions(+), 49 deletions(-)
diff --git a/messages/mysqlx_resultset__data_row.cc b/messages/mysqlx_resultset__data_row.cc
index 31aad8ff..3042cd56 100644
--- a/messages/mysqlx_resultset__data_row.cc
+++ b/messages/mysqlx_resultset__data_row.cc
@@ -258,15 +258,15 @@ MYSQL_XDEVAPI_PHP_METHOD(mysqlx_data_row, decode)
}
do {
if (!util::pb::read_variant_64(input_stream, &neg)) break;
- DBG_INF_FMT("neg =" MYSQLND_LLU_SPEC, neg);
+ DBG_INF_FMT("neg =" PRIu64, neg);
if (!util::pb::read_variant_64(input_stream, &hours)) break;
- DBG_INF_FMT("hours=" MYSQLND_LLU_SPEC, hours);
+ DBG_INF_FMT("hours=" PRIu64, hours);
if (!util::pb::read_variant_64(input_stream, &minutes)) break;
- DBG_INF_FMT("mins =" MYSQLND_LLU_SPEC, minutes);
+ DBG_INF_FMT("mins =" PRIu64, minutes);
if (!util::pb::read_variant_64(input_stream, &seconds)) break;
- DBG_INF_FMT("secs =" MYSQLND_LLU_SPEC, seconds);
+ DBG_INF_FMT("secs =" PRIu64, seconds);
if (!util::pb::read_variant_64(input_stream, &useconds)) break;
- DBG_INF_FMT("usecs=" MYSQLND_LLU_SPEC, useconds);
+ DBG_INF_FMT("usecs=" PRIu64, useconds);
} while (0);
#define TIME_FMT_STR "%s%02u:%02u:%02u.%08u"
ZVAL_NEW_STR(&zv, strpprintf(0, TIME_FMT_STR , neg? "-":"",
@@ -296,19 +296,19 @@ MYSQL_XDEVAPI_PHP_METHOD(mysqlx_data_row, decode)
}
do {
if (!util::pb::read_variant_64(input_stream, &year)) break;
- DBG_INF_FMT("year =" MYSQLND_LLU_SPEC, year);
+ DBG_INF_FMT("year =" PRIu64, year);
if (!util::pb::read_variant_64(input_stream, &month)) break;
- DBG_INF_FMT("month=" MYSQLND_LLU_SPEC, month);
+ DBG_INF_FMT("month=" PRIu64, month);
if (!util::pb::read_variant_64(input_stream, &day)) break;
- DBG_INF_FMT("day =" MYSQLND_LLU_SPEC, day);
+ DBG_INF_FMT("day =" PRIu64, day);
if (!util::pb::read_variant_64(input_stream, &hours)) break;
- DBG_INF_FMT("hours=" MYSQLND_LLU_SPEC, hours);
+ DBG_INF_FMT("hours=" PRIu64, hours);
if (!util::pb::read_variant_64(input_stream, &minutes)) break;
- DBG_INF_FMT("mins =" MYSQLND_LLU_SPEC, minutes);
+ DBG_INF_FMT("mins =" PRIu64, minutes);
if (!util::pb::read_variant_64(input_stream, &seconds)) break;
- DBG_INF_FMT("secs =" MYSQLND_LLU_SPEC, seconds);
+ DBG_INF_FMT("secs =" PRIu64, seconds);
if (!util::pb::read_variant_64(input_stream, &useconds)) break;
- DBG_INF_FMT("usecs=" MYSQLND_LLU_SPEC, useconds);
+ DBG_INF_FMT("usecs=" PRIu64, useconds);
} while (0);
#define DATETIME_FMT_STR "%04u-%02u-%02u %02u:%02u:%02u"
ZVAL_NEW_STR(&zv, strpprintf(0, DATETIME_FMT_STR ,
diff --git a/mysqlx_class_properties.cc b/mysqlx_class_properties.cc
index 3f1b13b2..a167561a 100644
--- a/mysqlx_class_properties.cc
+++ b/mysqlx_class_properties.cc
@@ -126,7 +126,11 @@ mysqlx_property_get_value(zval * object, zval * member, int type, void ** cache_
/* {{{ mysqlx_property_set_value */
+#if PHP_VERSION_ID >= 70400
+zval *
+#else
void
+#endif
mysqlx_property_set_value(zval * object, zval * member, zval * value, void **cache_slot)
{
zval tmp_member;
@@ -158,7 +162,11 @@ mysqlx_property_set_value(zval * object, zval * member, zval * value, void **cac
if (member == &tmp_member) {
zval_dtor(member);
}
+#if PHP_VERSION_ID >= 70400
+ DBG_RETURN(value);
+#else
DBG_VOID_RETURN;
+#endif
}
/* }}} */
diff --git a/mysqlx_class_properties.h b/mysqlx_class_properties.h
index 878248fa..1e3758ec 100644
--- a/mysqlx_class_properties.h
+++ b/mysqlx_class_properties.h
@@ -45,7 +45,11 @@ struct st_mysqlx_property
void mysqlx_add_properties(HashTable * ht, const st_mysqlx_property_entry* entries);
zval * mysqlx_property_get_value(zval * object, zval * member, int type, void ** cache_slot, zval * rv);
+#if PHP_VERSION_ID >= 70400
+zval *mysqlx_property_set_value(zval * object, zval * member, zval * value, void ** cache_slot);
+#else
void mysqlx_property_set_value(zval * object, zval * member, zval * value, void ** cache_slot);
+#endif
int mysqlx_object_has_property(zval * object, zval *member, int has_set_exists, void ** cache_slot);
void mysqlx_free_property_cb(zval *el);
diff --git a/xmysqlnd/xmysqlnd_protocol_dumper.cc b/xmysqlnd/xmysqlnd_protocol_dumper.cc
index aeccf049..63ce118e 100644
--- a/xmysqlnd/xmysqlnd_protocol_dumper.cc
+++ b/xmysqlnd/xmysqlnd_protocol_dumper.cc
@@ -407,8 +407,8 @@ xmysqlnd_dump_client_message(const zend_uchar packet_type, const void * payload,
DBG_INF_FMT("limit is %s", has_collection? "SET":"NOT SET");
if (has_limit) {
const Mysqlx::Crud::Limit & limit = message.limit();
- DBG_INF_FMT("row_count[%s]=" MYSQLND_LLU_SPEC, limit.has_row_count()? "SET":"NOT SET", limit.has_row_count()? limit.row_count() :0);
- DBG_INF_FMT("offset [%s]=" MYSQLND_LLU_SPEC, limit.has_offset()? "SET":"NOT SET", limit.has_offset()? limit.offset() :0);
+ DBG_INF_FMT("row_count[%s]=" PRIu64, limit.has_row_count()? "SET":"NOT SET", limit.has_row_count()? limit.row_count() :0);
+ DBG_INF_FMT("offset [%s]=" PRIu64, limit.has_offset()? "SET":"NOT SET", limit.has_offset()? limit.offset() :0);
}
DBG_INF_FMT("order_size=%d", message.order_size());
@@ -507,8 +507,8 @@ xmysqlnd_dump_client_message(const zend_uchar packet_type, const void * payload,
DBG_INF_FMT("limit is %s", has_collection? "SET":"NOT SET");
if (has_limit) {
const Mysqlx::Crud::Limit & limit = message.limit();
- DBG_INF_FMT("row_count[%s]=" MYSQLND_LLU_SPEC, limit.has_row_count()? "SET":"NOT SET", limit.has_row_count()? limit.row_count() :0);
- DBG_INF_FMT("offset [%s]=" MYSQLND_LLU_SPEC, limit.has_offset()? "SET":"NOT SET", limit.has_offset()? limit.offset() :0);
+ DBG_INF_FMT("row_count[%s]=" PRIu64, limit.has_row_count()? "SET":"NOT SET", limit.has_row_count()? limit.row_count() :0);
+ DBG_INF_FMT("offset [%s]=" PRIu64, limit.has_offset()? "SET":"NOT SET", limit.has_offset()? limit.offset() :0);
}
DBG_INF_FMT("order_size=%d", message.order_size());
@@ -569,8 +569,8 @@ xmysqlnd_dump_client_message(const zend_uchar packet_type, const void * payload,
DBG_INF_FMT("limit is %s", has_collection? "SET":"NOT SET");
if (has_limit) {
const Mysqlx::Crud::Limit & limit = message.limit();
- DBG_INF_FMT("row_count[%s]=" MYSQLND_LLU_SPEC, limit.has_row_count()? "SET":"NOT SET", limit.has_row_count()? limit.row_count() :0);
- DBG_INF_FMT("offset [%s]=" MYSQLND_LLU_SPEC, limit.has_offset()? "SET":"NOT SET", limit.has_offset()? limit.offset() :0);
+ DBG_INF_FMT("row_count[%s]=" PRIu64, limit.has_row_count()? "SET":"NOT SET", limit.has_row_count()? limit.row_count() :0);
+ DBG_INF_FMT("offset [%s]=" PRIu64, limit.has_offset()? "SET":"NOT SET", limit.has_offset()? limit.offset() :0);
}
DBG_INF_FMT("order_size=%d", message.order_size());
@@ -641,7 +641,7 @@ xmysqlnd_dump_column_meta(const Mysqlx::Resultset::ColumnMetaData & meta)
has_catalog? meta.catalog().c_str() : "n/a");
const bool has_collation = meta.has_collation();
- DBG_INF_FMT("collation[%s] is [" MYSQLND_LLU_SPEC "]", has_collation? "SET":"NOT SET",
+ DBG_INF_FMT("collation[%s] is [" PRIu64 "]", has_collation? "SET":"NOT SET",
has_collation? meta.collation() : 0);
const bool has_frac_digits = meta.has_fractional_digits();
diff --git a/xmysqlnd/xmysqlnd_rowset_fwd.cc b/xmysqlnd/xmysqlnd_rowset_fwd.cc
index ebdabea0..7683817b 100644
--- a/xmysqlnd/xmysqlnd_rowset_fwd.cc
+++ b/xmysqlnd/xmysqlnd_rowset_fwd.cc
@@ -54,7 +54,7 @@ XMYSQLND_METHOD(xmysqlnd_rowset_fwd, next)(XMYSQLND_ROWSET_FWD * const result,
{
const zend_bool no_more_on_the_line = !result->stmt->get_msg_stmt_exec().reader_ctx.has_more_rows_in_set;
DBG_ENTER("xmysqlnd_rowset_fwd::next");
- DBG_INF_FMT("row_cursor=" MYSQLND_LLU_SPEC " row_count=" MYSQLND_LLU_SPEC, result->row_cursor, result->row_count);
+ DBG_INF_FMT("row_cursor=" PRIu64 " row_count=" PRIu64, result->row_cursor, result->row_count);
if ((result->row_count - result->row_cursor) == 1 && !no_more_on_the_line) {
DBG_INF_FMT("We have to prefetch %u row(s)", result->prefetch_rows);
@@ -101,7 +101,7 @@ XMYSQLND_METHOD(xmysqlnd_rowset_fwd, fetch_one)(XMYSQLND_ROWSET_FWD * const resu
const unsigned int field_count = result->meta->m->get_field_count(result->meta);
const size_t row_count = result->row_count;
DBG_ENTER("xmysqlnd_rowset_fwd::fetch_one");
- DBG_INF_FMT("row_cursor=" MYSQLND_LLU_SPEC " row_count=" MYSQLND_LLU_SPEC, result->row_cursor, result->row_count);
+ DBG_INF_FMT("row_cursor=" PRIu64 " row_count=" PRIu64, result->row_cursor, result->row_count);
if (row_cursor >= row_count || !result->rows[row_cursor]) {
DBG_RETURN(FAIL);
}
@@ -153,7 +153,7 @@ XMYSQLND_METHOD(xmysqlnd_rowset_fwd, fetch_all)(XMYSQLND_ROWSET_FWD * const resu
/* Remove what we have, as we don't need it anymore */
result->m.free_rows_contents(result, stats, error_info);
}
- DBG_INF_FMT("total_row_count=" MYSQLND_LLU_SPEC, result->total_row_count);
+ DBG_INF_FMT("total_row_count=" PRIu64, result->total_row_count);
DBG_RETURN(PASS);
}
/* }}} */
diff --git a/xmysqlnd/xmysqlnd_session.cc b/xmysqlnd/xmysqlnd_session.cc
index 4d849d41..52f3d1da 100644
--- a/xmysqlnd/xmysqlnd_session.cc
+++ b/xmysqlnd/xmysqlnd_session.cc
@@ -1057,7 +1057,7 @@ xmysqlnd_session_data_set_client_id(void * context, const size_t id)
enum_func_status ret{FAIL};
xmysqlnd_session_data * session = (xmysqlnd_session_data *) context;
DBG_ENTER("xmysqlnd_session_data_set_client_id");
- DBG_INF_FMT("id=" MYSQLND_LLU_SPEC, id);
+ DBG_INF_FMT("id=" PRIu64, id);
if (context) {
session->client_id = id;
ret = PASS;
diff --git a/xmysqlnd/xmysqlnd_stmt.cc b/xmysqlnd/xmysqlnd_stmt.cc
index d2a9908b..3222da52 100644
--- a/xmysqlnd/xmysqlnd_stmt.cc
+++ b/xmysqlnd/xmysqlnd_stmt.cc
@@ -161,7 +161,7 @@ static const enum_hnd_func_status handler_on_row_field(void * context,
ctx->rowset->m.destroy_row(ctx->rowset, ctx->current_row, ctx->stats, ctx->error_info);
} else {
- DBG_INF_FMT("fwd_prefetch_count=" MYSQLND_LLU_SPEC " prefetch_counter=" MYSQLND_LLU_SPEC, ctx->fwd_prefetch_count, ctx->prefetch_counter);
+ DBG_INF_FMT("fwd_prefetch_count=" PRIu64 " prefetch_counter=" PRIu64, ctx->fwd_prefetch_count, ctx->prefetch_counter);
ctx->rowset->m.add_row(ctx->rowset, ctx->current_row, ctx->stats, ctx->error_info);
if (ctx->fwd_prefetch_count && !--ctx->prefetch_counter) {
ret = HND_PASS; /* Otherwise it is HND_AGAIN */
@@ -611,7 +611,7 @@ xmysqlnd_stmt::get_fwd_result(xmysqlnd_stmt * const stmt,
const struct st_xmysqlnd_on_stmt_execute_ok_bind on_stmt_execute_ok = { nullptr, nullptr };
const struct st_xmysqlnd_on_resultset_end_bind on_resultset_end = { nullptr, nullptr };
DBG_ENTER("xmysqlnd_stmt::get_fwd_result");
- DBG_INF_FMT("rows=" MYSQLND_LLU_SPEC, rows);
+ DBG_INF_FMT("rows=" PRIu64, rows);
if (FALSE == stmt->partial_read_started) {
read_ctx.stmt = stmt;
diff --git a/xmysqlnd/xmysqlnd_stmt_execution_state.cc b/xmysqlnd/xmysqlnd_stmt_execution_state.cc
index 5a187555..eed0e1a5 100644
--- a/xmysqlnd/xmysqlnd_stmt_execution_state.cc
+++ b/xmysqlnd/xmysqlnd_stmt_execution_state.cc
@@ -97,7 +97,7 @@ static void
XMYSQLND_METHOD(xmysqlnd_stmt_execution_state, set_affected_items_count)(XMYSQLND_STMT_EXECUTION_STATE * const state, const size_t value)
{
DBG_ENTER("xmysqlnd_stmt_execution_state::set_affected_items_count");
- DBG_INF_FMT("value=" MYSQLND_LLU_SPEC, value);
+ DBG_INF_FMT("value=" PRIu64, value);
state->items_affected = value;
DBG_VOID_RETURN;
}
@@ -109,7 +109,7 @@ static void
XMYSQLND_METHOD(xmysqlnd_stmt_execution_state, set_matched_items_count)(XMYSQLND_STMT_EXECUTION_STATE * const state, const size_t value)
{
DBG_ENTER("xmysqlnd_stmt_execution_state::set_matched_items_count");
- DBG_INF_FMT("value=" MYSQLND_LLU_SPEC, value);
+ DBG_INF_FMT("value=" PRIu64, value);
state->items_matched = value;
DBG_VOID_RETURN;
}
@@ -121,7 +121,7 @@ static void
XMYSQLND_METHOD(xmysqlnd_stmt_execution_state, set_found_items_count)(XMYSQLND_STMT_EXECUTION_STATE * const state, const size_t value)
{
DBG_ENTER("xmysqlnd_stmt_execution_state::set_found_items_count");
- DBG_INF_FMT("value=" MYSQLND_LLU_SPEC, value);
+ DBG_INF_FMT("value=" PRIu64, value);
state->items_found = value;
DBG_VOID_RETURN;
}
@@ -145,7 +145,7 @@ static void
XMYSQLND_METHOD(xmysqlnd_stmt_execution_state, set_last_insert_id)(XMYSQLND_STMT_EXECUTION_STATE * const state, const uint64_t value)
{
DBG_ENTER("xmysqlnd_stmt_execution_state::set_last_insert_id");
- DBG_INF_FMT("value=" MYSQLND_LLU_SPEC, value);
+ DBG_INF_FMT("value=" PRIu64, value);
state->last_insert_id = value;
DBG_VOID_RETURN;
}
diff --git a/xmysqlnd/xmysqlnd_stmt_result.cc b/xmysqlnd/xmysqlnd_stmt_result.cc
index 2a8c1c32..acc21ff4 100644
--- a/xmysqlnd/xmysqlnd_stmt_result.cc
+++ b/xmysqlnd/xmysqlnd_stmt_result.cc
@@ -224,7 +224,7 @@ XMYSQLND_METHOD(xmysqlnd_stmt_result, get_row_count)(const XMYSQLND_STMT_RESULT
if (result->rowset) {
ret = result->rowset->m.get_row_count(result->rowset);
}
- DBG_INF_FMT("rows=" MYSQLND_LLU_SPEC, ret);
+ DBG_INF_FMT("rows=" PRIu64, ret);
DBG_RETURN(ret);
}
/* }}} */
diff --git a/xmysqlnd/xmysqlnd_wireprotocol.cc b/xmysqlnd/xmysqlnd_wireprotocol.cc
index ae7d3a91..9bc1da70 100644
--- a/xmysqlnd/xmysqlnd_wireprotocol.cc
+++ b/xmysqlnd/xmysqlnd_wireprotocol.cc
@@ -1347,15 +1347,15 @@ enum_func_status xmysqlnd_row_time_field_to_zval( zval* zv,
} else {
do {
if (!util::pb::read_variant_64(input_stream, &neg)) break;
- DBG_INF_FMT("neg =" MYSQLND_LLU_SPEC, neg);
+ DBG_INF_FMT("neg =" PRIu64, neg);
if (!util::pb::read_variant_64(input_stream, &hours)) break;
- DBG_INF_FMT("hours =" MYSQLND_LLU_SPEC, hours);
+ DBG_INF_FMT("hours =" PRIu64, hours);
if (!util::pb::read_variant_64(input_stream, &minutes)) break;
- DBG_INF_FMT("mins =" MYSQLND_LLU_SPEC, minutes);
+ DBG_INF_FMT("mins =" PRIu64, minutes);
if (!util::pb::read_variant_64(input_stream, &seconds)) break;
- DBG_INF_FMT("secs =" MYSQLND_LLU_SPEC, seconds);
+ DBG_INF_FMT("secs =" PRIu64, seconds);
if (!util::pb::read_variant_64(input_stream, &useconds)) break;
- DBG_INF_FMT("usecs =" MYSQLND_LLU_SPEC, useconds);
+ DBG_INF_FMT("usecs =" PRIu64, useconds);
} while (0);
auto str = util::formatter("%s%02u:%02u:%02u.%08u")
@@ -1395,19 +1395,19 @@ enum_func_status xmysqlnd_row_datetime_field_to_zval( zval* zv,
} else {
do {
if (!util::pb::read_variant_64(input_stream, &year)) break;
- DBG_INF_FMT("year =" MYSQLND_LLU_SPEC, year);
+ DBG_INF_FMT("year =" PRIu64, year);
if (!util::pb::read_variant_64(input_stream, &month)) break;
- DBG_INF_FMT("month =" MYSQLND_LLU_SPEC, month);
+ DBG_INF_FMT("month =" PRIu64, month);
if (!util::pb::read_variant_64(input_stream, &day)) break;
- DBG_INF_FMT("day =" MYSQLND_LLU_SPEC, day);
+ DBG_INF_FMT("day =" PRIu64, day);
if (!util::pb::read_variant_64(input_stream, &hours)) break;
- DBG_INF_FMT("hours =" MYSQLND_LLU_SPEC, hours);
+ DBG_INF_FMT("hours =" PRIu64, hours);
if (!util::pb::read_variant_64(input_stream, &minutes)) break;
- DBG_INF_FMT("mins =" MYSQLND_LLU_SPEC, minutes);
+ DBG_INF_FMT("mins =" PRIu64, minutes);
if (!util::pb::read_variant_64(input_stream, &seconds)) break;
- DBG_INF_FMT("secs =" MYSQLND_LLU_SPEC, seconds);
+ DBG_INF_FMT("secs =" PRIu64, seconds);
if (!util::pb::read_variant_64(input_stream, &useconds)) break;
- DBG_INF_FMT("usecs =" MYSQLND_LLU_SPEC, useconds);
+ DBG_INF_FMT("usecs =" PRIu64, useconds);
} while (0);
auto str = util::formatter("%04u-%02u-%02u %02u:%02u:%02u")
@@ -1450,11 +1450,11 @@ enum_func_status xmysqlnd_row_date_field_to_zval(
} else {
do {
if (!util::pb::read_variant_64(input_stream, &year)) break;
- DBG_INF_FMT("year =" MYSQLND_LLU_SPEC, year);
+ DBG_INF_FMT("year =" PRIu64, year);
if (!util::pb::read_variant_64(input_stream, &month)) break;
- DBG_INF_FMT("month =" MYSQLND_LLU_SPEC, month);
+ DBG_INF_FMT("month =" PRIu64, month);
if (!util::pb::read_variant_64(input_stream, &day)) break;
- DBG_INF_FMT("day =" MYSQLND_LLU_SPEC, day);
+ DBG_INF_FMT("day =" PRIu64, day);
} while (0);
auto str = util::formatter("%04u-%02u-%02u")
diff --git a/xmysqlnd/xmysqlnd_zval2any.cc b/xmysqlnd/xmysqlnd_zval2any.cc
index 79a68450..0c8ad118 100644
--- a/xmysqlnd/xmysqlnd_zval2any.cc
+++ b/xmysqlnd/xmysqlnd_zval2any.cc
@@ -382,10 +382,10 @@ scalar2string(const Mysqlx::Datatypes::Scalar & scalar)
DBG_INF_FMT("subtype=%s", Scalar::Type_Name(scalar.type()).c_str());
switch (scalar.type()) {
case Scalar_Type_V_SINT:
- ret.l = mnd_sprintf(&ret.s, 0, MYSQLND_LLU_SPEC, scalar.v_signed_int());
+ ret.l = mnd_sprintf(&ret.s, 0, PRIu64, scalar.v_signed_int());
break;
case Scalar_Type_V_UINT:
- ret.l = mnd_sprintf(&ret.s, 0, MYSQLND_LLU_SPEC, scalar.v_unsigned_int());
+ ret.l = mnd_sprintf(&ret.s, 0, PRIu64, scalar.v_unsigned_int());
break;
case Scalar_Type_V_NULL:
break;
@@ -434,7 +434,7 @@ scalar2log(const Mysqlx::Datatypes::Scalar & scalar)
} else
#endif
{
- DBG_INF_FMT("value=" MYSQLND_LLU_SPEC, scalar.v_signed_int());
+ DBG_INF_FMT("value=" PRIu64, scalar.v_signed_int());
}
break;
case Scalar_Type_V_UINT:
@@ -447,7 +447,7 @@ scalar2log(const Mysqlx::Datatypes::Scalar & scalar)
snprintf(tmp, sizeof(tmp), "%s", util::to_string(scalar.v_unsigned_int()).c_str());
DBG_INF_FMT("value=%s", tmp);
} else {
- DBG_INF_FMT("value=" MYSQLND_LLU_SPEC, scalar.v_unsigned_int());
+ DBG_INF_FMT("value=" PRIu64, scalar.v_unsigned_int());
}
break;
case Scalar_Type_V_NULL:
|