Skip to content
Snippets Groups Projects
Commit d706cdae authored by gakin's avatar gakin
Browse files

SSDM-3309 : bug in automatic code generation with batch upload

SVN: 35929
parent f6aafa4f
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,7 @@ public class SampleCodeGeneratorByType extends EntityCodeGenerator
public static interface MaxQuery extends BaseQuery
{
@Select(sql = "SELECT max(substr(code, length(?{1})+1)::int) "
+ "FROM samples_all WHERE code similar to ?{1} || '[1234567890]+'")
+ "FROM samples_all WHERE UPPER(code) similar to UPPER(?{1}) || '[1234567890]+'")
public int getMaxCode(String prefix);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment