<p dir="auto">There are a lot of duplicated code <code class="notranslate">EncryptSQLRewriterParameterizedTest</code>, <code class="notranslate">MixSQLRewriterParameterizedTest</code> and <code class="notranslate">ShardingSQLRewriterParameterizedTest</code>, It could be a template implementation.</p>
<h2 dir="auto">Bug Report</h2>
<p dir="auto"><strong>For English only</strong>, other languages will not accept.</p>
<p dir="auto">Before report a bug, make sure you have:</p>
<ul dir="auto">
<li>Searched open and closed <a href="https://github.com/apache/shardingsphere/issues">GitHub issues</a>.</li>
<li>Read documentation: <a href="https://shardingsphere.apache.org/document/current/en/overview" rel="nofollow">ShardingSphere Doc</a>.</li>
</ul>
<p dir="auto">Please pay attention on issues you submitted, because we maybe need more details.<br>
If no response anymore and we cannot reproduce it on current information, we will <strong>close it</strong>.</p>
<p dir="auto">Please answer these questions before submitting your issue. Thanks!</p>
<h3 dir="auto">Which version of ShardingSphere did you use?</h3>
<p dir="auto">5.0.0.beta</p>
<h3 dir="auto">Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?</h3>
<p dir="auto">ShardingSphere-JDBC</p>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">抛出异常</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">没有任何异常</p>
<h3 dir="auto">Reason analyze (If you can)</h3>
<p dir="auto">没看源码</p>
<h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3>
<p dir="auto">很简单，库里一张表某个字段设成非空，然后在insert一条数据，非空字段不传值，正常要报异常，但是在5.0.0beta版本上，没有异常抛出，正常返回，只不过返回值是-1，我退回到4.1.1版本会抛异常</p>
<h3 dir="auto">Example codes for reproduce this issue (such as a github link).</h3>