only print postgres server version if debug enabled

This commit is contained in:
Chris Cromer 2019-05-26 14:32:51 -04:00
parent 23735a66de
commit 7343bbeb00
Signed by: cromer
GPG Key ID: 39CC813FF3C8708A

View File

@ -34,7 +34,9 @@ namespace Colegio {
if (db.get_status () != Postgres.ConnectionStatus.OK) {
throw new PostgresError.CONNECT (db.get_error_message ());
}
#if DEBUG
GLib.print ("Versión de servidor de Postgresql:" + " %d\n", db.get_server_version ());
#endif
}
public string escape (string str) throws PostgresError {