androrm / androrm

An Object Relational Mapper for Android.
http://www.androrm.com
MIT License
136 stars 35 forks source link

Dumb class names #5

Closed microgravitas closed 12 years ago

microgravitas commented 12 years ago

I just wasted hours scratching my head about an sqlite excpetion raised during initialization of the androrm database. I only write this here because I cannot find another way of contacting anyone involved (feel free to mark this as solved immediately...).

The trouble stemmed from the fact that I foolishly named a class Transaction and then tried to manage it via androrm... Maybe you could escape the class names in the sql statements? Or just put up a big red warning to not used sql reserved keywords as class names.

frontendphil commented 12 years ago

Haha. Thanks for pointing that out. I'll add some test case for that and try to somehow escape table names in queries, so that these kinds of errors won't occur :)

frontendphil commented 12 years ago

Fixed in version 0.3.2