DB_POSTGRES :: CoreModule: DB_POSTGRES :: the PostgreSQL driver for Kamailio. More...

Go to the source code of this file.
Definition in file db_postgres/km_val.h.
Convert a str to a db value, copy strings. The postgresql module uses a custom escape function for BLOBs. If the _s is linked in the db_val result, it will be returned zero
| _t | destination value type | |
| _v | destination value | |
| _s | source string | |
| _l | string length |
Definition at line 58 of file db_postgres/km_val.c.
References DB1_BLOB, VAL_BLOB, VAL_FREE, and VAL_TYPE.
Referenced by db_postgres_convert_row().

Converting a value to a string, used when converting result from a query
| _con | database connection | |
| _v | source value | |
| _s | target string | |
| _len | target string length |
Definition at line 110 of file db_postgres/km_val.c.
References DB1_BLOB, DB1_STR, DB1_STRING, VAL_BLOB, VAL_STR, VAL_STRING, and VAL_TYPE.
Referenced by db_postgres_delete(), db_postgres_insert(), db_postgres_query(), and db_postgres_update().

1.7.1