shapito: fix id types in format

This commit is contained in:
Dmitry Simonenko 2017-08-23 17:35:54 +03:00
parent c0f24e03ac
commit 15304fc2db
1 changed files with 3 additions and 3 deletions

View File

@ -215,15 +215,15 @@ shapito_be_write_row_descriptionf(shapito_stream_t *stream, char *fmt, ...)
switch (*fmt) {
case 's':
rc = shapito_be_write_row_description_add(stream, offset, name, name_len,
0, 0, 20, -1, 0, 0);
0, 0, 25 /* TEXTOID */, -1, 0, 0);
break;
case 'd':
rc = shapito_be_write_row_description_add(stream, offset, name, name_len,
0, 0, 23, 4, 0, 0);
0, 0, 23 /* INT4OID */, 4, 0, 0);
break;
case 'l':
rc = shapito_be_write_row_description_add(stream, offset, name, name_len,
0, 0, 25, 8, 0, 0);
0, 0, 20 /* INT8OID */, 8, 0, 0);
break;
default:
va_end(args);