[libgda/LIBGDA_4.0] MySQL provider: correctly handle the UNIX SOCKET connection argument
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda/LIBGDA_4.0] MySQL provider: correctly handle the UNIX SOCKET connection argument
- Date: Wed, 23 Mar 2011 19:53:32 +0000 (UTC)
commit 2ea69e0eef317f13dab97f5df24971a9ee64b38e
Author: Vivien Malerba <malerba gnome-db org>
Date: Wed Mar 23 18:05:47 2011 +0100
MySQL provider: correctly handle the UNIX SOCKET connection argument
providers/mysql/gda-mysql-provider.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/providers/mysql/gda-mysql-provider.c b/providers/mysql/gda-mysql-provider.c
index 9b155b3..5d18931 100644
--- a/providers/mysql/gda-mysql-provider.c
+++ b/providers/mysql/gda-mysql-provider.c
@@ -1,5 +1,5 @@
-/* GDA Mysql provider
- * Copyright (C) 2008 The GNOME Foundation.
+/*
+ * Copyright (C) 2008 - 2011 The GNOME Foundation.
*
* AUTHORS:
* Carlos Savoretti <csavoretti gmail com>
@@ -471,7 +471,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]