lib/src.rb in rubyfb-0.5.5 vs lib/src.rb in rubyfb-0.5.6
- old
+ new
@@ -771,10 +771,30 @@
def column_alias(column)
end
#
+ # This method fetches the scale associated with a specified column for a
+ # ResultSet object. Firebird implements some floating point types with
+ # integral storage and a negative scale. For example, depending on
+ # your platform
+ #
+ # SELECT 1.003 FROM RDB$DATABASE
+ #
+ # may return a ResultSet, the first and only column of which has
+ # a base type of :BIGINT but a scale of -3. (Fetches of the actual
+ # value will correctly return a ruby Float.)
+ #
+ # ==== Parameters
+ # column:: A reference to the column number to fetch the details for.
+ # Column numbers start at zero.
+ #
+ def column_scale(column)
+ end
+
+
+ #
# This method fetches the table name associated with a specified column
# for a ResultSet object.
#
# ==== Parameters
# column:: A reference to the column number to fetch the details for.
@@ -907,9 +927,22 @@
# ==== Parameters
# index:: The index of the column to fetch the alias for. The first
# column in the row is at offset zero.
#
def column_alias(index)
+ end
+
+
+ #
+ # This method fetches the scale associated with a specified column
+ # within a row of data. See the documentation of
+ # ResultSet#column_scale for details.
+ #
+ # ==== Parameters
+ # column:: A reference to the column number to fetch the details for.
+ # Column numbers start at zero.
+ #
+ def column_scale(column)
end
#
# This method fetches the value associated with a column within a Row