Displaying 1 result from an estimated 1 matches for "sentientcon".
Did you mean:
sentientc
2007 Apr 22
0
Intro and a Question
...he connection and continue with my program executions. I have tried making a simple dummy table with one value and something like
EnsureCon<-function(){
conMissing<-0;
mytest<-try(sql("select * from ConTest"),silent=TRUE);
if(ConTestPass(mytest[[1]])==0) {
conMissing<-1;
SentientCon<-dbConnect(MySQL(), user="root", password="mypass", host="localhost", dbname="mydatabase", port=3307);
print("attemping reconnect...")
}
else {print("connection intact")};
if (conMissing==1){
mytest<-try(sql("select * from...