songcser / encog-java

Automatically exported from code.google.com/p/encog-java
0 stars 0 forks source link

SQLNeuralDataSet Connection issues #30

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to run the sql neural data set using uid & pwd

It seems that when one enters uid and pwd the logic to check to see if a
password is needed or not is inverted:

if ((SQLNeuralDataSet.this.uid != null)

                        || (SQLNeuralDataSet.this.pwd != null)) {

                    this.connection = DriverManager

                            .getConnection(SQLNeuralDataSet.this.url);

                } else {

                    this.connection = DriverManager.getConnection(

                            SQLNeuralDataSet.this.url,

                            SQLNeuralDataSet.this.uid,

                            SQLNeuralDataSet.this.pwd);

                }

I guess the first if should read:
f ((SQLNeuralDataSet.this.uid == null)

                        || (SQLNeuralDataSet.this.pwd == null)) {

                    this.connection = DriverManager

                            .getConnection(SQLNeuralDataSet.this.url);

This is not letting me using the SQLNeuralDataset

Original issue reported on code.google.com by vinicius...@gmail.com on 26 Oct 2009 at 2:03

GoogleCodeExporter commented 9 years ago
Was fixed earlier

Original comment by heatonre...@gmail.com on 16 Aug 2010 at 7:21