From 7bcd2613bb116eff33d6e2358bd8c737bacc3cc1 Mon Sep 17 00:00:00 2001 From: pans <pans@454eff88-639b-444f-9e54-f578c98de674> Date: 星期三, 04 一月 2017 16:33:26 +0800 Subject: [PATCH] --- RtspFace/demo/src/db/DBuntil.cpp | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/RtspFace/demo/src/db/DBuntil.cpp b/RtspFace/demo/src/db/DBuntil.cpp index ee9102f..b9c4d94 100644 --- a/RtspFace/demo/src/db/DBuntil.cpp +++ b/RtspFace/demo/src/db/DBuntil.cpp @@ -43,7 +43,7 @@ return p; } -int DBuntil::db_select(int f_id,person* per) +bool DBuntil::db_select(int f_id,person* per) { sprintf( sql, "select a.p_id,b.`name`,b.img from face_person a,user_info b where a.face_id = %d AND a.p_id = b.pid " , f_id ); @@ -71,7 +71,7 @@ return true; } -int DBuntil::db_add(int f_id,person *per) +bool DBuntil::db_add(int f_id,person *per) { // sprintf( sql, "INSERT INTO user_info(NAME, img) VALUES('%s', NULL)" , per->name ); @@ -88,7 +88,7 @@ return false; } -int DBuntil::db_register(int f_id,person *per) +bool DBuntil::db_register(int f_id,person *per) { if(db_add(f_id,per)){ return true; -- Gitblit v1.8.0