#637 ✓resolved

[PATCH] Avoid infinite loop and stack overflow when :unique_index value is a String.

Reported by kwatch | November 5th, 2008 @ 12:03 AM

String value for :unique_index will be infinite loop and cause stack overflow.

  property :name, String, :unique_index => "u1"   #=> infinite loop

Comments and changes to this ticket

  • Dan Kubb (dkubb)

    Dan Kubb (dkubb) January 7th, 2009 @ 02:41 AM

    • State changed from “new” to “resolved”
    • Assigned user changed from “Sam Smoot” to “Dan Kubb (dkubb)”

    This problem is resolved in dkubb/dm-core:


    Instead of applying this patch I decided to make it so that the Property constructor validates the options prior to setting them inside the Property instance. This error, and any like are eliminated because the Property object is in a known state at all times.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket