Changeset 38382 for trunk/tests/phpunit/tests/db/charset.php
- Timestamp:
- 08/26/2016 08:21:30 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/db/charset.php
r37320 r38382 544 544 545 545 $vars = array(); 546 foreach( $this->table_and_column_defs as $ value ) {547 $this_table_name = $table_name . '_' . rand_str( 5 );546 foreach( $this->table_and_column_defs as $i => $value ) { 547 $this_table_name = $table_name . '_' . $i; 548 548 $drop = "DROP TABLE IF EXISTS $this_table_name"; 549 549 $create = "CREATE TABLE $this_table_name {$value['definition']}"; … … 584 584 585 585 $vars = array(); 586 foreach( $this->table_and_column_defs as $ value ) {587 $this_table_name = $table_name . '_' . rand_str( 5 );586 foreach( $this->table_and_column_defs as $i => $value ) { 587 $this_table_name = $table_name . '_' . $i; 588 588 $drop = "DROP TABLE IF EXISTS $this_table_name"; 589 589 $create = "CREATE TABLE $this_table_name {$value['definition']}"; … … 688 688 ); 689 689 690 foreach( $data as &$value ) {691 $this_table_name = $table_name . '_' . rand_str( 5 );690 foreach( $data as $i => &$value ) { 691 $this_table_name = $table_name . '_' . $i; 692 692 693 693 $value[0] = "CREATE TABLE $this_table_name {$value[0]}"; … … 802 802 ); 803 803 804 foreach( $data as &$value ) {805 $this_table_name = $table_name . '_' . rand_str( 5 );804 foreach( $data as $i => &$value ) { 805 $this_table_name = $table_name . '_' . $i; 806 806 807 807 $value[0] = "CREATE TABLE $this_table_name {$value[0]}";
Note: See TracChangeset
for help on using the changeset viewer.