[DBIx-Class-Devel] [dbix-class] Unbreak $rs->create() with empty hashref on Oracle (#61)

Lasse Makholm notifications at github.com
Mon Sep 29 18:01:32 GMT 2014


Oracle does not support the INSERT INTO ... DEFAULT VALUES syntax used by
SQLMaker by default. Furthermore, Oracle has no way of inserting a row
without specifying any columns, so the only reasonably fix seems to be to
pick a column and supply the DEFAULT keyword as value for it.

This approach seems to work without problems, even for things like
sequence+trigger-as-auto-increment.
You can merge this Pull Request by running:

  git pull https://github.com/lasse-unity3d/dbix-class oracle-fix-empty-insert

Or you can view, comment on it, or merge it online at:

  https://github.com/dbsrgits/dbix-class/pull/61

-- Commit Summary --

  * Unbreak $rs->create() with empty hashref on Oracle

-- File Changes --

    M lib/DBIx/Class/Storage/DBI/Oracle/Generic.pm (15)
    M t/60core.t (4)
    M t/73oracle.t (6)

-- Patch Links --

https://github.com/dbsrgits/dbix-class/pull/61.patch
https://github.com/dbsrgits/dbix-class/pull/61.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/dbsrgits/dbix-class/pull/61
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scsys.co.uk/pipermail/dbix-class-devel/attachments/20140929/35005096/attachment.htm>


More information about the DBIx-Class-Devel mailing list