Exemplo n.º 1
0
 void CouchbaseRecordBinder::processDecimal(const void *value, unsigned digits, unsigned precision, const RtlFieldInfo * field)
 {
    Decimal val;
    size32_t bytes;
    rtlDataAttr decText;
    val.setDecimal(digits, precision, value);
    val.getStringX(bytes, decText.refstr());
    processUtf8(bytes, decText.getstr(), field);
 }
Exemplo n.º 2
0
 virtual void processDecimal(const void *value, unsigned digits, unsigned precision, const RtlFieldInfo * field)
 {
     Decimal val;
     size32_t bytes;
     char *data;
     val.setDecimal(digits, precision, value);
     val.getStringX(bytes, data);
     MYSQL_BIND &bindInfo = createBindBuffer(MYSQL_TYPE_STRING, 0);
     bindInfo.buffer = data;
     bindInfo.buffer_length = bytes;
     bindInfo.length = &bindInfo.buffer_length;
 }