Bug error in form with mariadb connection

When you using a document(database) field in a form where you select autoincrement field and you leave the sequence_name empty (not used in mysql and mariadb) it generates when using the mariadb connection following:
if ($this->Ini->nm_tpbanco == ‘pdo_mariadb’)
{
$NM_seq_auto = "NEXTVAL(tb_documents_seq), ";
$NM_cmp_auto = "fld_id, ";
}
mariadb cannot handle "NEXTVAL(tb_documents_seq), "
When you switch to a mysql_connection generation of the code is correct.