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 +4 -4
- data/VERSION +1 -1
- data/ext/yb_ddl_parser/yb_parser_stubs.c +95 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 164cb99d05c5d680813175fc70fb16f5d7cef897bf2f50f89b72fc9dc4b5d8be
|
|
4
|
+
data.tar.gz: c96e34fcf07218533e36507f92c86665ed59a9be3df742b88602ef3040fae29c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6ce9af186b080672dc71b9be61befdfde2907bbf7fae057a74fc2667b7a531ab1eff59e59deca846be22b8bccb9de3ed1791d45ff8f9aa7b264d1708d6020f4b
|
|
7
|
+
data.tar.gz: a976f51b2e713ace4cf12cbc96eb8783624e79be13ab172cada046db87ded8852a09d33a1ebca50ed81f34810f6606e67d44db67c8a854a83c3a5e9ceb471302
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
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
|
{
|