yb_ddl_parser 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ca019710ac6b45c2f9def930810c2aca80163c4c5704882c91c95982f80ca2c
4
- data.tar.gz: fb0773ae6baffd42d660fa54dfa6cbccf6d32e3d56ec4cbc4e23b5396e524de0
3
+ metadata.gz: 164cb99d05c5d680813175fc70fb16f5d7cef897bf2f50f89b72fc9dc4b5d8be
4
+ data.tar.gz: c96e34fcf07218533e36507f92c86665ed59a9be3df742b88602ef3040fae29c
5
5
  SHA512:
6
- metadata.gz: 27f01250032ddaedee5fd9aa932f113ef1e5a58749b41e9fe135b7db1ab3b60e19a956da163e1a8e912bbbad4551cbd9fab66053adc57425f2a3344c1eb74bda
7
- data.tar.gz: 95cba2ff256c4234114305d1a24214df913bcc5385b5b570daacb59224d97528e9a701788a155f231b199a68a70800da078ff0ca8185cb3b55b2c498f974fe5d
6
+ metadata.gz: 6ce9af186b080672dc71b9be61befdfde2907bbf7fae057a74fc2667b7a531ab1eff59e59deca846be22b8bccb9de3ed1791d45ff8f9aa7b264d1708d6020f4b
7
+ data.tar.gz: a976f51b2e713ace4cf12cbc96eb8783624e79be13ab172cada046db87ded8852a09d33a1ebca50ed81f34810f6606e67d44db67c8a854a83c3a5e9ceb471302
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -10,6 +10,37 @@
10
10
  #include "yb/yql/pggate/ybc_gflags.h"
11
11
 
12
12
  #include <stdarg.h>
13
+ #include <stdio.h>
14
+
15
+ /*
16
+ * PostgreSQL's port.h maps libc printf-family calls to pg_* replacements.
17
+ * This gem does not compile PostgreSQL's port/snprintf.c, so provide small
18
+ * wrappers around the platform libc functions for the parser runtime.
19
+ */
20
+ #ifdef vsnprintf
21
+ #undef vsnprintf
22
+ #endif
23
+ #ifdef snprintf
24
+ #undef snprintf
25
+ #endif
26
+ #ifdef vsprintf
27
+ #undef vsprintf
28
+ #endif
29
+ #ifdef sprintf
30
+ #undef sprintf
31
+ #endif
32
+ #ifdef vfprintf
33
+ #undef vfprintf
34
+ #endif
35
+ #ifdef fprintf
36
+ #undef fprintf
37
+ #endif
38
+ #ifdef vprintf
39
+ #undef vprintf
40
+ #endif
41
+ #ifdef printf
42
+ #undef printf
43
+ #endif
13
44
 
14
45
  bool IsBinaryUpgrade = false;
15
46
  bool IsYsqlUpgrade = false;
@@ -177,6 +208,70 @@ pstrdup(const char *in)
177
208
  return out;
178
209
  }
179
210
 
211
+ int
212
+ pg_vsnprintf(char *str, size_t count, const char *fmt, va_list args)
213
+ {
214
+ return vsnprintf(str, count, fmt, args);
215
+ }
216
+
217
+ int
218
+ pg_snprintf(char *str, size_t count, const char *fmt, ...)
219
+ {
220
+ va_list args;
221
+ va_start(args, fmt);
222
+ int result = vsnprintf(str, count, fmt, args);
223
+ va_end(args);
224
+ return result;
225
+ }
226
+
227
+ int
228
+ pg_vsprintf(char *str, const char *fmt, va_list args)
229
+ {
230
+ return vsprintf(str, fmt, args);
231
+ }
232
+
233
+ int
234
+ pg_sprintf(char *str, const char *fmt, ...)
235
+ {
236
+ va_list args;
237
+ va_start(args, fmt);
238
+ int result = vsprintf(str, fmt, args);
239
+ va_end(args);
240
+ return result;
241
+ }
242
+
243
+ int
244
+ pg_vfprintf(FILE *stream, const char *fmt, va_list args)
245
+ {
246
+ return vfprintf(stream, fmt, args);
247
+ }
248
+
249
+ int
250
+ pg_fprintf(FILE *stream, const char *fmt, ...)
251
+ {
252
+ va_list args;
253
+ va_start(args, fmt);
254
+ int result = vfprintf(stream, fmt, args);
255
+ va_end(args);
256
+ return result;
257
+ }
258
+
259
+ int
260
+ pg_vprintf(const char *fmt, va_list args)
261
+ {
262
+ return vprintf(fmt, args);
263
+ }
264
+
265
+ int
266
+ pg_printf(const char *fmt, ...)
267
+ {
268
+ va_list args;
269
+ va_start(args, fmt);
270
+ int result = vprintf(fmt, args);
271
+ va_end(args);
272
+ return result;
273
+ }
274
+
180
275
  char *
181
276
  psprintf(const char *fmt, ...)
182
277
  {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yb_ddl_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kirs