Skip to content

Support Monetary Type#395

Closed
cleberjsantos wants to merge 1 commit into
zzzeek:masterfrom
cleberjsantos:master
Closed

Support Monetary Type#395
cleberjsantos wants to merge 1 commit into
zzzeek:masterfrom
cleberjsantos:master

Conversation

@cleberjsantos
Copy link
Copy Markdown
Contributor

PostgreSql has support monetary type since its version 8.0.

@zzzeek
Copy link
Copy Markdown
Owner

zzzeek commented Oct 25, 2017

this looks very nice, thanks, will try to pull it through this week.

@zzzeek
Copy link
Copy Markdown
Owner

zzzeek commented Nov 15, 2017

Dear contributor -

This pull request is being moved to Gerrit, at https://gerrit.sqlalchemy.org/600, where it may be tested and reviewed more closely. As such, the pull request itself is being marked "closed" or "declined", however your contribution is merely being moved to our central review system. Please register at https://gerrit.sqlalchemy.org#/register/ to send and receive comments regarding this item.

@zzzeek zzzeek closed this Nov 15, 2017

"""Provide the PostgreSQL MONEY type."""
__visit_name__ = "MONEY"
PGMacAddr = MONEY
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At a glance this looks like it ought to be PGMoney, no?

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the whole PGSomeDataType thing is legacy, if a type is only present in Postgresql it gets the UPPERCASE type right in the postgresql dialect and that's it. here's the manifesto for the whole thing: https://github.com/zzzeek/sqlalchemy/blob/master/lib/sqlalchemy/dialects/type_migration_guidelines.txt

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh if it says PGMacAddr literally, then yes that's wrong

zzzeek pushed a commit that referenced this pull request Nov 16, 2017
Change-Id: I2b40faf583a84bc5b416e1ad3aa812896ea67a8c
Pull-request: #395
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants