I'm using postgres too, that will be the way to go, tnx

On Monday, November 19, 2012 7:57:32 AM UTC+1, Johann Spies wrote:
>
> On 16 November 2012 15:59, Dragan Matic <perakoj...@gmail.com<javascript:>
> > wrote:
>
>> It has been asked before but I haven't seen any definitive answer. Is 
>> there a way to enforce unique constraint or index on multiple fields or if 
>> not are there any plans to implement it? It can come handy in checking data 
>> integrity and lots of databases support it. 
>>
>>
> I use the database backend (PostgreSQL in my case) to enforce that.  
> Web2py will then receive an error message from the backend when the 
> constraint has been violated.  
>
> You can do a try...  except   to cach the exception. 
>
> Regards
> Johann
>
>
> -- 
> Because experiencing your loyal love is better than life itself, 
> my lips will praise you.  (Psalm 63:3)
>
>

-- 



Reply via email to