[libgda] MySQL provider: correctly handle the UNIX SOCKET connection argument
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] MySQL provider: correctly handle the UNIX SOCKET connection argument
- Date: Wed, 23 Mar 2011 14:33:40 +0000 (UTC)
commit 2b5047c7ab275ac82fe2c9ae8a3ce745bccece56
Author: Vivien Malerba <malerba gnome-db org>
Date: Wed Mar 23 15:29:36 2011 +0100
MySQL provider: correctly handle the UNIX SOCKET connection argument
providers/mysql/gda-mysql-provider.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/providers/mysql/gda-mysql-provider.c b/providers/mysql/gda-mysql-provider.c
index 162a966..64b8266 100644
--- a/providers/mysql/gda-mysql-provider.c
+++ b/providers/mysql/gda-mysql-provider.c
@@ -1,4 +1,4 @@
-/* GDA Mysql provider
+/*
* Copyright (C) 2008 - 2011 The GNOME Foundation.
*
* AUTHORS:
@@ -475,7 +475,7 @@ real_open_connection (const gchar *host,
unsigned int flags = 0;
/* Exclusive: host/pair otherwise unix socket. */
- if ((host || port >= 0) && socket) {
+ if ((host || port > 0) && socket) {
g_set_error (error, 0, 0, "%s",
_("Cannot give a UNIX SOCKET if you also provide "
"either a HOST or a PORT"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]