From: Alexander Turenko <alexander.turenko@tarantool.org> To: Sergei Kalashnikov <ztarvos@gmail.com> Cc: tarantool-patches@freelists.org Subject: [tarantool-patches] Re: [PATCH] jdbc: fix NPE in update Date: Tue, 18 Sep 2018 02:06:08 +0300 [thread overview] Message-ID: <20180917230608.q7li5cy2s2xaywtz@tkn_work_nb> (raw) In-Reply-To: <1537196954-23804-1-git-send-email-ztarvos@gmail.com> Hi Sergei! The patch looks good for me in general. Minor comments are below. WBR, Alexander Turenko. On Mon, Sep 17, 2018 at 06:09:14PM +0300, Sergei Kalashnikov wrote: > Updated constants to be in sync with tarantool IPROTO. > Added integration tests for the working JDBC functionality. > Fixed travis script to use tarantool 2.0 which is required for SQL. > Fixed failing user permission calls in tarantool initialization script. > > Closes #39 > --- > https://github.com/tarantool/tarantool-java/issues/39 > https://github.com/ztarvos/tarantool-java/commits/ztarvos/gh-39-fix-update-npe > > diff --git a/.travis.yml b/.travis.yml > index e0f434f..852807c 100644 > --- a/.travis.yml > +++ b/.travis.yml > @@ -11,5 +11,5 @@ before_script: > - src/test/travis.pre.sh > > script: > - - mvn test > + - mvn verify Maybe we should run both unit and integration tests. The master barnch now have one unit test so maybe it worth to leave it here to don't forget during future rebase on master. > + "INSERT INTO test_types VALUES(" + > + "1," + > + "'abcd'," + //CHAR > + "'000000000000000000001'," + //VARCHAR > + "'0000000000000000000000000000000001'," + //LONGVARCHAR > + "100," + // NUMERIC > + "100.1," + // DECIMAL > + "1," + //BIT > + "7," + //TINYINT > + "1000," + //SMALLINT > + "100," + //INTEGER > + "100000000000000000," + //BIGINT > + "-100.2," + //REAL > + "100.3," + //FLOAT > + "X'01020304'," + //BINARY > + "X'0102030405'," +//VARBINARY > + "X'010203040506'," + //LONGVARBINARY > + "'1983-03-14'," + //DATE > + "'12:01:06'," + //TIME > + "129479994)" //TIMESTAMP > + }; > + Can we also store expected values for JdbcResultSetIT.{testGetColumnByIdx,testGetColumnByName}() somewhere within this class to improve code locality?
next prev parent reply other threads:[~2018-09-17 23:06 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-09-17 15:09 [tarantool-patches] " Sergei Kalashnikov 2018-09-17 23:06 ` Alexander Turenko [this message] 2018-09-18 9:17 ` [tarantool-patches] " Sergei Kalashnikov 2018-09-18 9:33 ` Alexander Turenko
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=20180917230608.q7li5cy2s2xaywtz@tkn_work_nb \ --to=alexander.turenko@tarantool.org \ --cc=tarantool-patches@freelists.org \ --cc=ztarvos@gmail.com \ --subject='[tarantool-patches] Re: [PATCH] jdbc: fix NPE in update' \ /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