From: "n.pettik" <korablev@tarantool.org> To: tarantool-patches@freelists.org Cc: Imeev Mergen <imeevma@tarantool.org> Subject: [tarantool-patches] Re: [PATCH v3 1/6] sql: remove unused macros from pragma.c and pragma.h Date: Wed, 16 Jan 2019 18:34:57 +0300 [thread overview] Message-ID: <2AF2069E-C6DE-4B03-B86A-F979BB32A1A1@tarantool.org> (raw) In-Reply-To: <bce2e738fc866b2637bc167aa87bc37bd308474b.1545844480.git.imeevma@gmail.com> > On 26 Dec 2018, at 20:17, imeevma@tarantool.org wrote: > > Hi! Thank you for review! My answers and new version below. I > didn't include diff, because all that changed was the commit > message. > > > On 12/24/18 5:01 PM, n.pettik wrote: >> Nit: at the end of commit subject redundant ‘*’ and dot. > Fixed. > >> They weren’t deleted, they are simply not used. >> I guess they still can be enabled, if add appropriate commands >> to cmake lists. On the other hand, I doubt that someday we >> really may need them. > Made changes in in commit-message. > >> In fact, this commit has nothing in common with mentioned issue. > Removed from commit-message. > >> Why didn’t you remove ENABLE_SELECTTRACE as well? > I didn't remove it because it can be set through cmake. So? As I already said, I also was able to set OMIT_FLAG_PRAGMAS Look: diff --git a/src/box/sql/CMakeLists.txt b/src/box/sql/CMakeLists.txt index 7f7b60e22..4d4cbb21f 100644 --- a/src/box/sql/CMakeLists.txt +++ b/src/box/sql/CMakeLists.txt @@ -1,6 +1,7 @@ if(CMAKE_BUILD_TYPE STREQUAL "Debug") add_definitions(-DSQLITE_DEBUG=1) add_definitions(-DSQLITE_ENABLE_SELECTTRACE) + add_definitions(-DSQLITE_OMIT_FLAG_PRAGMAS=1) add_definitions(-DSQLITE_ENABLE_WHERETRACE) endif() Make sure that build is debug but flag-pragmas are disabled: tarantool> \set language sql --- - true ... tarantool> pragma vdbe_debug=1 --- - error: 'no such pragma: VDBE_DEBUG' ... tarantool> pragma parser_trace=1 parser: Shift 'cmd', go to state 419 parser: Shift 'SEMI' parser: Return. Stack=[explain cmd SEMI] parser: Input '$' parser: Reduce [ecmd ::= explain cmdx SEMI], go to state 0. parser: Shift 'ecmd', go to state 420 parser: Reduce [input ::= ecmd], go to state 0. parser: Accept! parser: Return. Stack=] --- - [] ... Lets remove it and replace with simple ifdef debug. The same if for ENABLE_WHERETRACE
next prev parent reply other threads:[~2019-01-16 15:35 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-12-26 18:17 [tarantool-patches] [PATCH v3 0/6] sql: set column types for EXPLAIN and PRAGMA imeevma 2018-12-26 18:17 ` [tarantool-patches] [PATCH v3 1/6] sql: remove unused macros from pragma.c and pragma.h imeevma 2019-01-16 15:34 ` n.pettik [this message] 2018-12-26 18:18 ` [tarantool-patches] [PATCH v3 2/6] sql: fix "PRAGMA parser_trace" result imeevma 2019-01-16 15:35 ` [tarantool-patches] " n.pettik 2018-12-26 18:18 ` [tarantool-patches] [PATCH v3 3/6] sql: Show currently set sql_default_engine imeevma 2018-12-26 18:18 ` [tarantool-patches] [PATCH v3 4/6] sql: fix "PRAGMA case_sensitive_like" result imeevma 2019-01-16 15:35 ` [tarantool-patches] " n.pettik 2018-12-26 18:18 ` [tarantool-patches] [PATCH v3 5/6] sql: 'PRAGMA' result in the appropriate format imeevma 2019-01-16 15:35 ` [tarantool-patches] " n.pettik 2018-12-26 18:18 ` [tarantool-patches] [PATCH v3 6/6] sql: set column types for EXPLAIN and PRAGMA imeevma 2019-01-16 15:35 ` [tarantool-patches] " n.pettik
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=2AF2069E-C6DE-4B03-B86A-F979BB32A1A1@tarantool.org \ --to=korablev@tarantool.org \ --cc=imeevma@tarantool.org \ --cc=tarantool-patches@freelists.org \ --subject='[tarantool-patches] Re: [PATCH v3 1/6] sql: remove unused macros from pragma.c and pragma.h' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox