@@ -777,7 +777,17 @@ All functionality listed here is highly experimental and should be used with gre
The 'MySQL' in the DSN will be picked up and the MySQL specific attribute aliasing will be used.
Right now only MySQL is supported by this feature, and even that support is very minimal. Currently the MySQL `$dbh` and `$sth` attributes 'mysql\_insertid' are aliased to the `$dbh` attribute 'mock\_last\_insert\_id'. It is possible to add more aliases though, using the `DBD::Mock:_set_mock_attribute_aliases` function (see the source code for details).
Right now there is only minimal support for MySQL and MariaDB:
- MySQL
Currently the 'mysql\_insertid' attribute for `$dbh` and `$sth` are aliased to the `$dbh` attribute 'mock\_last\_insert\_id'.
- MariaDB
Currently the 'mariadb\_insertid' attribute for `$dbh` and `$sth` are aliased to the `$dbh` attribute 'mock\_last\_insert\_id'.
It is possible to add more aliases though, using the `DBD::Mock:_set_mock_attribute_aliases` function (see the source code for details)
sub {(shift)->{Database}->{'mock_last_insert_id'}}
}
},
mariadb=>{
db=>{
mariadb_insertid=>'mock_last_insert_id'
},
st=>{
mariadb_insertid=>
sub {(shift)->{Database}->{'mock_last_insert_id'}}
}
}
);
sub _get_mock_attribute_aliases{
...
...
@@ -955,7 +965,21 @@ Once this is turned on, you will need to choose a database specific attribute al
The 'MySQL' in the DSN will be picked up and the MySQL specific attribute aliasing will be used.
Right now only MySQL is supported by this feature, and even that support is very minimal. Currently the MySQL C<$dbh> and C<$sth> attributes 'mysql_insertid' are aliased to the C<$dbh> attribute 'mock_last_insert_id'. It is possible to add more aliases though, using the C<DBD::Mock:_set_mock_attribute_aliases> function (see the source code for details).
Right now there is only minimal support for MySQL and MariaDB:
=over 4
=item MySQL
Currently the 'mysql_insertid' attribute for C<$dbh> and C<$sth> are aliased to the C<$dbh> attribute 'mock_last_insert_id'.
=item MariaDB
Currently the 'mariadb_insertid' attribute for C<$dbh> and C<$sth> are aliased to the C<$dbh> attribute 'mock_last_insert_id'.
=back
It is possible to add more aliases though, using the C<DBD::Mock:_set_mock_attribute_aliases> function (see the source code for details)