~sgdg/stado/stado

« back to all changes in this revision

Viewing changes to src/org/postgresql/stado/parser/SqlShowDatabases.java

  • Committer: Andrei Martsinchyk
  • Date: 2013-04-22 15:04:09 UTC
  • mfrom: (9.1.2 stado30)
  • Revision ID: andrei.martsinchyk@gmail.com-20130422150409-cv4i89c21bbgvby1
Merge in 3.0 branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
import org.postgresql.stado.engine.XDBSessionContext;
34
34
import org.postgresql.stado.metadata.scheduler.ILockCost;
35
35
import org.postgresql.stado.metadata.scheduler.LockSpecification;
36
 
import org.postgresql.stado.parser.core.visitor.ObjectDepthFirst;
37
 
 
38
 
 
 
36
import org.postgresql.stado.parser.core.visitor.DepthFirstVoidArguVisitor;
39
37
 
40
38
/**
41
 
 * This class implements the functionalty for update statistics depending on the
 
39
 * This class implements the functionality for update statistics depending on the
42
40
 * query executed
43
41
 */
44
 
public class SqlShowDatabases extends ObjectDepthFirst implements IXDBSql,
 
42
public class SqlShowDatabases extends DepthFirstVoidArguVisitor implements IXDBSql,
45
43
        IExecutable {
46
44
    /**
47
45
     * f0 -> <SHOW_> f1 -> <DATABASES_>
99
97
    public boolean needCoordinatorConnection() {
100
98
        return false;
101
99
    }
 
100
    
 
101
        @Override
 
102
        public boolean isReadOnly() {
 
103
                return true;
 
104
        }
 
105
 
102
106
}