[sr-dev] git:master:d12f96af: db_postgres: added missing break for INT8OID results

Daniel-Constantin Mierla miconda at gmail.com
Thu Jul 13 08:54:33 CEST 2017


Module: kamailio
Branch: master
Commit: d12f96af28e170c3197a47af5840e5e30639adf6
URL: https://github.com/kamailio/kamailio/commit/d12f96af28e170c3197a47af5840e5e30639adf6

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2017-07-13T08:54:18+02:00

db_postgres: added missing break for INT8OID results

- instead of DB1_BIGINT, the result type ended to be DB1_DOUBLE

---

Modified: src/modules/db_postgres/km_res.c

---

Diff:  https://github.com/kamailio/kamailio/commit/d12f96af28e170c3197a47af5840e5e30639adf6.diff
Patch: https://github.com/kamailio/kamailio/commit/d12f96af28e170c3197a47af5840e5e30639adf6.patch

---

diff --git a/src/modules/db_postgres/km_res.c b/src/modules/db_postgres/km_res.c
index 8e9b6288ff..5f6cbd4307 100644
--- a/src/modules/db_postgres/km_res.c
+++ b/src/modules/db_postgres/km_res.c
@@ -15,8 +15,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  *
  */
@@ -131,6 +131,7 @@ int db_postgres_get_columns(const db1_con_t* _h, db1_res_t* _r)
 			case INT8OID:
 				LM_DBG("use DB1_BIGINT result type\n");
 				RES_TYPES(_r)[col] = DB1_BIGINT;
+			break;
 
 			case FLOAT4OID:
 			case FLOAT8OID:
@@ -166,7 +167,7 @@ int db_postgres_get_columns(const db1_con_t* _h, db1_res_t* _r)
 				LM_DBG("use DB1_BITMAP result type\n");
 				RES_TYPES(_r)[col] = DB1_BITMAP;
 			break;
-				
+
 			default:
 				LM_WARN("unhandled data type column (%.*s) type id (%d), "
 						"use DB1_STRING as default\n", RES_NAMES(_r)[col]->len,




More information about the sr-dev mailing list