| 57 | |
| 58 | |
| 59 | USHORT DataTypeUtilBase::getResultTextType(const dsc* value1, const dsc* value2) |
| 60 | { |
| 61 | const USHORT cs1 = value1->getCharSet(); |
| 62 | const USHORT cs2 = value2->getCharSet(); |
| 63 | |
| 64 | const USHORT ttype1 = value1->getTextType(); |
| 65 | const USHORT ttype2 = value2->getTextType(); |
| 66 | |
| 67 | if (cs1 == CS_NONE || cs2 == CS_BINARY) |
| 68 | return ttype2; |
| 69 | |
| 70 | if (cs1 == CS_ASCII && cs2 != CS_NONE) |
| 71 | return ttype2; |
| 72 | |
| 73 | return ttype1; |
| 74 | } |
| 75 | |
| 76 | |
| 77 | // This function is made to determine a output descriptor from a given list |
no test coverage detected