Skip to content

Commit 27fec12

Browse files
committed
- Make user and password defined in CREATE TABLE have precedence on
the ones specified in a Federated Server. modified: storage/connect/tabjdbc.cpp - Typo modified: storage/connect/tabext.cpp modified: storage/connect/tabext.h modified: storage/connect/tabjdbc.cpp modified: storage/connect/tabjson.cpp
1 parent a483475 commit 27fec12

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

storage/connect/tabext.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/************* Tabext C++ Functions Source Code File (.CPP) ************/
2-
/* Name: TABEXT.CPP Version 1.0 */
2+
/* Name: TABEXT.CPP Version 1.1 */
33
/* */
4-
/* (C) Copyright to the author Olivier BERTRAND 2017 */
4+
/* (C) Copyright to the author Olivier BERTRAND 2017 - 2019 */
55
/* */
66
/* This file contains the TBX, TDB and OPJOIN classes functions. */
77
/***********************************************************************/

storage/connect/tabext.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*************** Tabext H Declares Source Code File (.H) ***************/
2-
/* Name: TABEXT.H Version 1.0 */
2+
/* Name: TABEXT.H Version 1.1 */
33
/* */
4-
/* (C) Copyright to the author Olivier BERTRAND 2017 */
4+
/* (C) Copyright to the author Olivier BERTRAND 2017 - 2019 */
55
/* */
66
/* This is the EXTDEF, TABEXT and EXTCOL classes definitions. */
77
/***********************************************************************/

storage/connect/tabjdbc.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/************* TabJDBC C++ Program Source Code File (.CPP) *************/
22
/* PROGRAM NAME: TABJDBC */
33
/* ------------- */
4-
/* Version 1.2 */
4+
/* Version 1.3 */
55
/* */
66
/* COPYRIGHT: */
77
/* ---------- */
8-
/* (C) Copyright to the author Olivier BERTRAND 2016-2017 */
8+
/* (C) Copyright to the author Olivier BERTRAND 2016-2019 */
99
/* */
1010
/* WHAT THIS PROGRAM DOES: */
1111
/* ----------------------- */
@@ -185,10 +185,10 @@ int JDBCDEF::ParseURL(PGLOBAL g, char *url, bool b)
185185
} else // host is a URL
186186
Url = PlugDup(g, server->host);
187187

188-
if (server->username)
188+
if (!Username && server->username)
189189
Username = PlugDup(g, server->username);
190190

191-
if (server->password)
191+
if (!Password && server->password)
192192
Password = PlugDup(g, server->password);
193193

194194
return RC_NF;

storage/connect/tabjson.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/************* tabjson C++ Program Source Code File (.CPP) *************/
2-
/* PROGRAM NAME: tabjson Version 1.6 */
3-
/* (C) Copyright to the author Olivier BERTRAND 2014 - 2018 */
2+
/* PROGRAM NAME: tabjson Version 1.7 */
3+
/* (C) Copyright to the author Olivier BERTRAND 2014 - 2019 */
44
/* This program are the JSON class DB execution routines. */
55
/***********************************************************************/
66

0 commit comments

Comments
 (0)