diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2011-08-16 18:31:49 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2011-08-16 18:31:49 -0400 |
| commit | f74264276baf3064901498c1b070df5e0c4db6fc (patch) | |
| tree | 9f5521933ab57691f40f3d18b7530936baadd6b1 /lib/sqlalchemy | |
| parent | 76a9219a1ebe9d6abdc510fec87968df905be4fe (diff) | |
| download | sqlalchemy-f74264276baf3064901498c1b070df5e0c4db6fc.tar.gz | |
- Extra keyword arguments to the base Float
type beyond "precision" and "asdecimal" are ignored;
added a deprecation warning here and additional
docs, related to [ticket:2258]
Diffstat (limited to 'lib/sqlalchemy')
| -rw-r--r-- | lib/sqlalchemy/types.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/sqlalchemy/types.py b/lib/sqlalchemy/types.py index 5f059e157..5c9ea99c3 100644 --- a/lib/sqlalchemy/types.py +++ b/lib/sqlalchemy/types.py @@ -1395,9 +1395,17 @@ class Float(Numeric): defaults to ``False``. Note that setting this flag to ``True`` results in floating point conversion. + :param \**kwargs: deprecated. Additional arguments here are ignored + by the default :class:`.Float` type. For database specific + floats that support additional arguments, see that dialect's + documentation for details, such as :class:`sqlalchemy.dialects.mysql.FLOAT`. + """ self.precision = precision self.asdecimal = asdecimal + if kwargs: + util.warn_deprecated("Additional keyword arguments " + "passed to Float ignored.") def result_processor(self, dialect, coltype): if self.asdecimal: |
