We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0343024 commit 3acb7d1Copy full SHA for 3acb7d1
src/interfaces/ecpg/lib/ecpglib.c
@@ -434,12 +434,20 @@ ECPGexecute(struct statement * stmt)
434
switch (var->type)
435
{
436
case ECPGt_short:
437
+ sprintf(buff, "%d", *(short *) var->value);
438
+ tobeinserted = buff;
439
+ break;
440
+
441
case ECPGt_int:
442
sprintf(buff, "%d", *(int *) var->value);
443
tobeinserted = buff;
444
break;
445
446
case ECPGt_unsigned_short:
447
+ sprintf(buff, "%d", *(unsigned short *) var->value);
448
449
450
451
case ECPGt_unsigned_int:
452
sprintf(buff, "%d", *(unsigned int *) var->value);
453
0 commit comments