Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to select by UUID #116

Closed
jsvini opened this issue Feb 27, 2015 · 3 comments
Closed

Add support to select by UUID #116

jsvini opened this issue Feb 27, 2015 · 3 comments
Assignees
Labels
Milestone

Comments

@jsvini
Copy link

jsvini commented Feb 27, 2015

When I try to do a select like this:

class Client(db.Entity):
  id = PrimaryKey(UUID, default=uuid4)

Client.select().filter(id=clientId)

I get this error:

NotImplementedError: <class 'uuid.UUID'>
@kaporzhu
Copy link

any update for this issue @amalashkevich

@kozlovsky kozlovsky added the bug label Jun 26, 2015
@kozlovsky kozlovsky added this to the 0.6.2 milestone Jun 26, 2015
@kozlovsky kozlovsky self-assigned this Jun 26, 2015
@kozlovsky
Copy link
Member

Thanks @jsvini for the reporting and @smokingkapor for the reminding!
This bug should be fixed now. The fix will be part of the release PonyORM 0.6.2

@kaporzhu
Copy link

thank you :-) @kozlovsky

kozlovsky added a commit that referenced this issue Jan 11, 2016
The documentation was moved from this repo to a separate one at https://github.com/ponyorm/pony-doc
The compiled version can be found at https://docs.ponyorm.com

# New features

* Python 3.5 support
* #132, #145: raw_sql() function was added
* #126: Ability to use @db_session with generator functions
* #116: Add support to select by UUID
* Ability to get string SQL statement using the Query.get_sql() method
* New function delete(gen) and Query.delete(bulk=False)
* Now it is possible to override Entity.__init__() and declare custom entity methods

# Backward incompatible changes

* Normalizing table names for symmetric relationships
* Autostrip - automatically remove leading and trailing characters

# Bugfixes

* #87: Pony fails with pymysql installed as MySQLdb
* #118: Pony should reconnect if previous connection was created before process was forked
* #121: Unable to update value of unique attribute
* #122: AssertionError when changing part of a composite key
* #127: a workaround for incorrect pysqlite locking behavior
* #136: Cascade delete does not work correctly for one-to-one relationships
* #141, #143: remove restriction on adding new methods to entities
* #142: Entity.select_random() AssertionError
* #147: Add 'atom_expr' symbol handling for Python 3.5 grammar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants