@@ -1670,35 +1670,61 @@ header of table names together with all rows:
1670
1670
}
1671
1671
1672
1672
For portable applications you should restrict yourself to attributes with
1673
- capitalized or mixed case names. Lower case attribute names are private
1674
- to DBD::mysql. The attribute list includes:
1673
+ capitalized or mixed case names. Uppercase attribute names are in the
1674
+ statement handle interface described by L<DBI> , while lower case attribute
1675
+ names are private to DBD::mysql. The attribute list includes:
1675
1676
1676
1677
=over
1677
1678
1678
- =item ParamValues
1679
+ =item NAME
1679
1680
1680
- This attribute is supported as described in the DBI documentation .
1681
+ A reference to an array of column names, as per DBI docs .
1681
1682
1682
- It returns a hashref, the keys of which are the 'names' of the
1683
- placeholders: integers starting at 1. It returns an empty hashref if
1684
- the statement has no placeholders.
1683
+ =item NULLABLE
1685
1684
1686
- The values for these keys are initially undef; they are populated when
1687
- the C<bind_param > or C<execute > method is called. Supplying the
1688
- parameter values in the arguments to C<execute > will override any
1689
- previously bound values.
1685
+ A reference to an array of boolean values; TRUE indicates that this column
1686
+ may contain NULL's.
1690
1687
1691
- After execution, it is possible to use C<bind_param > to change a single
1692
- value in the statement and C<execute > again, with other values
1693
- unchanged. The attribute remains properly populated after the C<finish >
1694
- method is called, with the values from the last execution.
1688
+ =item NUM_OF_FIELDS
1689
+
1690
+ Number of fields returned by a I<SELECT > or I<LISTFIELDS > statement.
1691
+ You may use this for checking whether a statement returned a result:
1692
+ A zero value indicates a non-SELECT statement like I<INSERT > ,
1693
+ I<DELETE > or I<UPDATE > .
1694
+
1695
+ =item TYPE
1696
+
1697
+ A reference to an array of column types. The engine's native column
1698
+ types are mapped to portable types like DBI::SQL_INTEGER() or
1699
+ DBI::SQL_VARCHAR(), as good as possible. Not all native types have
1700
+ a meaningful equivalent, for example DBD::mysql::FIELD_TYPE_INTERVAL
1701
+ is mapped to DBI::SQL_VARCHAR().
1702
+ If you need the native column types, use I<mysql_type > . See below.
1695
1703
1696
1704
=item ChopBlanks
1697
1705
1698
1706
this attribute determines whether a I<fetchrow > will chop preceding
1699
1707
and trailing blanks off the column values. Chopping blanks does not
1700
1708
have impact on the I<max_length > attribute.
1701
1709
1710
+ =item ParamValues
1711
+
1712
+ This attribute is supported as described in the DBI documentation.
1713
+
1714
+ It returns a hashref, the keys of which are the 'names' of the
1715
+ placeholders: integers starting at 1. It returns an empty hashref if
1716
+ the statement has no placeholders.
1717
+
1718
+ The values for these keys are initially undef; they are populated with
1719
+ C<bind_param > , or when C<execute > method is called with parameters.
1720
+ (Supplying the parameter values in the arguments to C<execute > will
1721
+ override any previously bound values.)
1722
+
1723
+ After execution, it is possible to use C<bind_param > to change a single
1724
+ parameter value and C<execute > the statement again, with other values
1725
+ unchanged. The attribute remains properly populated after the C<finish >
1726
+ method is called, with the values from the last execution.
1727
+
1702
1728
=item mysql_gtids
1703
1729
1704
1730
Returns GTID(s) if GTID session tracking is ensabled in the server via
@@ -1750,35 +1776,10 @@ the maximum physically present in the result table, I<length> gives
1750
1776
the theoretically possible maximum. I<max_length > is valid for MySQL
1751
1777
only.
1752
1778
1753
- =item NAME
1754
-
1755
- A reference to an array of column names.
1756
-
1757
- =item NULLABLE
1758
-
1759
- A reference to an array of boolean values; TRUE indicates that this column
1760
- may contain NULL's.
1761
-
1762
- =item NUM_OF_FIELDS
1763
-
1764
- Number of fields returned by a I<SELECT > or I<LISTFIELDS > statement.
1765
- You may use this for checking whether a statement returned a result:
1766
- A zero value indicates a non-SELECT statement like I<INSERT > ,
1767
- I<DELETE > or I<UPDATE > .
1768
-
1769
1779
=item mysql_table
1770
1780
1771
1781
A reference to an array of table names, useful in a I<JOIN > result.
1772
1782
1773
- =item TYPE
1774
-
1775
- A reference to an array of column types. The engine's native column
1776
- types are mapped to portable types like DBI::SQL_INTEGER() or
1777
- DBI::SQL_VARCHAR(), as good as possible. Not all native types have
1778
- a meaningful equivalent, for example DBD::mysql::FIELD_TYPE_INTERVAL
1779
- is mapped to DBI::SQL_VARCHAR().
1780
- If you need the native column types, use I<mysql_type > . See below.
1781
-
1782
1783
=item mysql_type
1783
1784
1784
1785
A reference to an array of MySQL's native column types, for example
0 commit comments