[libgda/LIBGDA_4.2] 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.2] MySQL provider: correctly handle the UNIX SOCKET connection argument
- Date: Wed, 23 Mar 2011 16:53:47 +0000 (UTC)
commit 463e6bc286e262bc1986d70ba8e36376f7572fcf
Author: Vivien Malerba <malerba gnome-db org>
Date: Wed Mar 23 17:51:25 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 76c36bc..4ce5a54 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 - 2010 The GNOME Foundation.
+/*
+ * Copyright (C) 2008 - 2011 The GNOME Foundation.
*
* AUTHORS:
* Carlos Savoretti <csavoretti gmail com>
@@ -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]