diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b5b2cf7..bc435ef 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -17,7 +17,7 @@ The xeus team organizes public video meetings. The schedule for future meetings To install the xeus-sql dependencies: ```bash -mamba install nlohmann_json xtl cppzmq xeus cpp-tabulate>=1.5 xvega xvega-bindings xproperty jupyterlab soci-core compilers cmake -c conda-forge +mamba install nlohmann_json xtl cppzmq xeus xeus-zmq cpp-tabulate>=1.5 xvega xvega-bindings xproperty jupyterlab soci-core compilers cmake -c conda-forge ``` #### Known issues diff --git a/src/xeus_sql_interpreter.cpp b/src/xeus_sql_interpreter.cpp index 803f6e2..e9b3bd3 100644 --- a/src/xeus_sql_interpreter.cpp +++ b/src/xeus_sql_interpreter.cpp @@ -37,7 +37,7 @@ #endif namespace xeus_sql -{ +{ // implemented at the end of the file // for better readability const std::array & get_keywords(); @@ -312,7 +312,8 @@ namespace xeus_sql if (xv_bindings::case_insentive_equals("SELECT", tokenized_input[0]) || xv_bindings::case_insentive_equals("DESC", tokenized_input[0]) || xv_bindings::case_insentive_equals("DESCRIBE", tokenized_input[0]) || - xv_bindings::case_insentive_equals("SHOW", tokenized_input[0])) + xv_bindings::case_insentive_equals("SHOW", tokenized_input[0]) || + xv_bindings::case_insentive_equals("--", tokenized_input[0])) { nl::json data = process_SQL_input(code, xv_sql_df); @@ -379,7 +380,7 @@ namespace xeus_sql { auto pos = -1; for(int i=code.size()-1; i>=0; --i) - { + { if(!is_identifier(code[i])) { pos = i;