|
@@ -48,6 +48,7 @@
|
|
*/
|
|
*/
|
|
typedef enum {
|
|
typedef enum {
|
|
DB_INT, /**< represents an 32 bit integer number */
|
|
DB_INT, /**< represents an 32 bit integer number */
|
|
|
|
+ DB_BIGINT, /**< represents an 64 bit integer number */
|
|
DB_DOUBLE, /**< represents a floating point number */
|
|
DB_DOUBLE, /**< represents a floating point number */
|
|
DB_STRING, /**< represents a zero terminated const char* */
|
|
DB_STRING, /**< represents a zero terminated const char* */
|
|
DB_STR, /**< represents a string of 'str' type */
|
|
DB_STR, /**< represents a string of 'str' type */
|
|
@@ -78,6 +79,7 @@ typedef struct {
|
|
/** Column value structure that holds the actual data in a union. */
|
|
/** Column value structure that holds the actual data in a union. */
|
|
union {
|
|
union {
|
|
int int_val; /**< integer value */
|
|
int int_val; /**< integer value */
|
|
|
|
+ long long ll_val; /**< long long value */
|
|
double double_val; /**< double value */
|
|
double double_val; /**< double value */
|
|
time_t time_val; /**< unix time_t value */
|
|
time_t time_val; /**< unix time_t value */
|
|
const char* string_val; /**< zero terminated string */
|
|
const char* string_val; /**< zero terminated string */
|
|
@@ -121,6 +123,12 @@ typedef struct {
|
|
#define VAL_INT(dv) ((dv)->val.int_val)
|
|
#define VAL_INT(dv) ((dv)->val.int_val)
|
|
|
|
|
|
|
|
|
|
|
|
+/**
|
|
|
|
+ * Use this macro if you need to access the long long value in the db_val_t structure.
|
|
|
|
+ */
|
|
|
|
+#define VAL_BIGINT(dv) ((dv)->val.ll_val)
|
|
|
|
+
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* Use this macro if you need to access the double value in the db_val_t structure.
|
|
* Use this macro if you need to access the double value in the db_val_t structure.
|
|
*/
|
|
*/
|