Code

sysdb: Only try to reconnect before executing a command or on an empty line.
[sysdb.git] / src / tools / sysdb / input.h
index 0aeabf8b7b653197f98ffa0678d13b769e0c21e2..b8501f472383cd454608c19aebcab8688e784c60 100644 (file)
@@ -39,11 +39,14 @@ typedef struct {
        size_t tokenizer_pos;
        size_t query_len;
 
+       /* indicates that we've had non-empty input */
+       bool have_input;
+
        bool interactive;
        bool eof;
 } sdb_input_t;
 
-#define SDB_INPUT_INIT { NULL, NULL, NULL, 0, 0, 1, 0 }
+#define SDB_INPUT_INIT { NULL, NULL, NULL, 0, 0, 0, 1, 0 }
 
 /*
  * sysdb_input: