Browse Source

- Broken headers fixed
- Missing prototypes added
(Reported by Maxim Sobolev)

Jan Janak 21 years ago
parent
commit
9c0a9d956c

+ 1 - 1
modules/db_postgres/db_con.c

@@ -39,10 +39,10 @@
 #include <string.h>
 #include "../../dprint.h"
 #include "../../mem/mem.h"
+#include "../../db/db_con.h"
 #include "defs.h"
 #include "con_postgres.h"
 #include "aug_std.h"
-#include "db_con.h"
 
 /*
  * Store name of table that will be used by

+ 1 - 1
modules/db_postgres/db_mod.c

@@ -35,7 +35,7 @@
 
 #include <stdio.h>
 #include "../../sr_module.h"
-#include "db_con.h"
+#include "../../db/db_con.h"
 #include "dbase.h"
 
 MODULE_VERSION

+ 1 - 0
modules/db_postgres/db_val.c

@@ -188,6 +188,7 @@ int str2valp(db_type_t _t, db_val_t* _v, const char* _s, int _l, void *_p)
 
 	switch(_t) {
 	case DB_INT:
+	case DB_BITMAP:
 		sprintf(dbuf, "got int %s", _s);
 		DLOG("str2valp", dbuf);
 		if (str2int(_s, &VAL_INT(_v)) < 0) {

+ 12 - 0
modules/db_postgres/dbase.h

@@ -106,4 +106,16 @@ int db_update(db_con_t* _h, db_key_t* _k, db_op_t* _o, db_val_t* _v,
 	      db_key_t* _uk, db_val_t* _uv, int _n, int _un);
 
 
+/*
+ * Store name of table that will be used by
+ * subsequent database functions
+ */
+int use_table(db_con_t* _h, const char* _t);
+
+int val2str(db_val_t* _v, char* _s, int* _len);
+
+int free_result(db_res_t* _r);
+
+int convert_result(db_con_t* _h, db_res_t* _r);
+
 #endif /* DBASE_H */