Changeset fc11f2e in tol


Ignore:
Timestamp:
Jun 12, 2009, 1:45:30 PM (17 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
c4a04bf
Parents:
2dcd670
Message:

Ensuring connection is not in _.allConnections before to add it

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@1075 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/stdlib/data/db/_db_connect.tol

    r2dcd670 rfc11f2e  
    120120      Real _.isOpen    = false
    121121    ]];
    122     Set Append(_.allConnections, [[ Eval("NameBlock "+alias+"=dbc") ]]);
    123     _.allConnections[Card(_.allConnections)]
     122    Real If(!ObjectExist("NameBlock","_.allConnections::"+alias),
     123    {
     124      Set Append(_.allConnections, [[ Eval("NameBlock "+alias+"=dbc") ]]);
     125      Real SetIndexByName(_.allConnections)
     126    });
     127    Eval("_.allConnections::"+alias)
    124128  };
    125129
Note: See TracChangeset for help on using the changeset viewer.