<div dir="ltr"><div>Hi,</div><div><br></div><div>We&#39;re porting a DBIx::Class application from MySQL to Oracle, containing some insert statements with no column specifications by way of $rs-&gt;create({}). This doesn&#39;t seem to work on Oracle.</div><div><br></div><div>DBIx::Class::SQLMaker generates &quot;INSERT INTO table DEFAULT VALUES RETURNING id INTO ?&quot; which, as far as I can figure is not valid syntax on Oracle. Neither the is the other common variant for such statements; &quot;INSERT INTO table () VALUES ()&quot;.</div><div><br></div><div>A workaround might be to pick an arbitrary column (having a default value) and doing $rs-&gt;create({ column =&gt; \&#39;DEFAULT&#39; }), yielding &quot;INSERT INTO table (some_column) VALUES (DEFAULT) RETURNING id INTO ?&quot; but that seems hackish and hard to turn into a generic solution. I&#39;m also not familiar enough with Oracle to know if there are any side-effects from this.</div><div><br></div><div>Is this simply a known limitation on Oracle and something I&#39;ll have to handle in my application or am I missing something...?</div><div><br></div><div>In any case, it seems like the least I should get is an error from DBIx::Class instead of an invalid SQL statement.</div><div><br></div><div>I&#39;m seeing this with DBIx::Class v0.08270-22-g83d2991 (current master) against an Oracle 11g XE server.</div><div><br></div><div>Any input is appreciated.</div><div><br></div><div>Thanks</div><div>/Lasse</div><div><br></div><br></div>