1. Prometheus Research, LLC
  2. Prometheus
  3. htsql

Commits

Clark C. Evans  committed 9001f54

temporary hack to ensure readline isn't used in combination with
proprietary database adapters in the htsql-ctl shell

  • Participants
  • Parent commits 3ed00d0
  • Branches default

Comments (0)

Files changed (1)

File src/htsql/ctl/shell.py

View file
 
     def setup(self):
         # Load the `readline` history; initialize completion.
-        if self.ctl.is_interactive and readline is not None:
+        is_free = self.db.engine in ('sqlite', 'mysql', 'pgsql')
+        if self.ctl.is_interactive and readline is not None and is_free:
             path = os.path.abspath(os.path.expanduser(self.history_path))
             if os.path.exists(path):
                 readline.read_history_file(path)