Ticket #19425: endian.patch
File endian.patch, 1.4 KB (added by mtalexander (Mike Alexander), 15 years ago) |
---|
-
dbi_result.c
old src 891 891 892 892 switch (RESULT->field_attribs[fieldidx] & DBI_INTEGER_SIZEMASK) { 893 893 case DBI_INTEGER_SIZE1: 894 return RESULT->rows[RESULT->currowidx]->field_values[fieldidx].d_char; 894 895 case DBI_INTEGER_SIZE2: 895 896 return RESULT->rows[RESULT->currowidx]->field_values[fieldidx].d_short; 896 897 case DBI_INTEGER_SIZE3: … … 947 948 948 949 switch (RESULT->field_attribs[fieldidx] & DBI_INTEGER_SIZEMASK) { 949 950 case DBI_INTEGER_SIZE1: 951 return RESULT->rows[RESULT->currowidx]->field_values[fieldidx].d_char; 950 952 case DBI_INTEGER_SIZE2: 953 return RESULT->rows[RESULT->currowidx]->field_values[fieldidx].d_short; 951 954 case DBI_INTEGER_SIZE3: 952 955 case DBI_INTEGER_SIZE4: 953 956 return RESULT->rows[RESULT->currowidx]->field_values[fieldidx].d_long; … … 995 998 996 999 switch (RESULT->field_attribs[fieldidx] & DBI_INTEGER_SIZEMASK) { 997 1000 case DBI_INTEGER_SIZE1: 1001 return RESULT->rows[RESULT->currowidx]->field_values[fieldidx].d_char; 998 1002 case DBI_INTEGER_SIZE2: 1003 return RESULT->rows[RESULT->currowidx]->field_values[fieldidx].d_short; 999 1004 case DBI_INTEGER_SIZE3: 1000 1005 case DBI_INTEGER_SIZE4: 1006 return RESULT->rows[RESULT->currowidx]->field_values[fieldidx].d_long; 1001 1007 case DBI_INTEGER_SIZE8: 1002 1008 return RESULT->rows[RESULT->currowidx]->field_values[fieldidx].d_longlong; 1003 1009 default: