mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	Merged revisions 288638 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8 ................ r288638 | tilghman | 2010-09-23 22:39:29 -0500 (Thu, 23 Sep 2010) | 16 lines Merged revisions 288637 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ................ r288637 | tilghman | 2010-09-23 22:36:01 -0500 (Thu, 23 Sep 2010) | 9 lines Merged revisions 288636 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r288636 | tilghman | 2010-09-23 22:20:24 -0500 (Thu, 23 Sep 2010) | 2 lines Solaris compatibility fixes ........ ................ ................ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@288639 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -111,7 +111,11 @@ static int pgsql_log(struct ast_cdr *cdr) | ||||
| 		if (PQstatus(conn) != CONNECTION_BAD) { | ||||
| 			connected = 1; | ||||
| 			if (PQsetClientEncoding(conn, encoding)) { | ||||
| #ifdef HAVE_PGSQL_pg_encoding_to_char | ||||
| 				ast_log(LOG_WARNING, "Failed to set encoding to '%s'.  Encoding set to default '%s'\n", encoding, pg_encoding_to_char(PQclientEncoding(conn))); | ||||
| #else | ||||
| 				ast_log(LOG_WARNING, "Failed to set encoding to '%s'.  Encoding set to default.\n", encoding); | ||||
| #endif | ||||
| 			} | ||||
| 		} else { | ||||
| 			pgerror = PQerrorMessage(conn); | ||||
| @@ -486,7 +490,11 @@ static int config_module(int reload) | ||||
| 		ast_debug(1, "Successfully connected to PostgreSQL database.\n"); | ||||
| 		connected = 1; | ||||
| 		if (PQsetClientEncoding(conn, encoding)) { | ||||
| #ifdef HAVE_PGSQL_pg_encoding_to_char | ||||
| 			ast_log(LOG_WARNING, "Failed to set encoding to '%s'.  Encoding set to default '%s'\n", encoding, pg_encoding_to_char(PQclientEncoding(conn))); | ||||
| #else | ||||
| 			ast_log(LOG_WARNING, "Failed to set encoding to '%s'.  Encoding set to default.\n", encoding); | ||||
| #endif | ||||
| 		} | ||||
| 		version = PQserverVersion(conn); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user