Skip to content

Commit 32462e5

Browse files
committed
Improve method naming
1 parent e4ba70d commit 32462e5

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

wp-includes/sqlite-ast/class-wp-sqlite-driver.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1487,7 +1487,7 @@ private function execute_select_statement( WP_Parser_Node $node ): void {
14871487

14881488
// Store column meta info. This must be done before fetching data, which
14891489
// seems to erase type information for expressions in the SELECT clause.
1490-
$this->store_last_column_meta( $stmt );
1490+
$this->store_last_column_meta_from_statement( $stmt );
14911491
$this->set_results_from_fetched_data(
14921492
$stmt->fetchAll( $this->pdo_fetch_mode )
14931493
);
@@ -2413,7 +2413,7 @@ private function execute_show_collation_statement(): void {
24132413
$definition
24142414
)
24152415
);
2416-
$this->store_last_column_meta( $stmt );
2416+
$this->store_last_column_meta_from_statement( $stmt );
24172417
$this->set_results_from_fetched_data( $stmt->fetchAll( PDO::FETCH_OBJ ) );
24182418
}
24192419

@@ -2446,7 +2446,7 @@ private function execute_show_databases_statement( WP_Parser_Node $node ): void
24462446
)
24472447
);
24482448

2449-
$this->store_last_column_meta( $stmt );
2449+
$this->store_last_column_meta_from_statement( $stmt );
24502450
$databases = $stmt->fetchAll( PDO::FETCH_OBJ );
24512451
$this->set_results_from_fetched_data( $databases );
24522452
}
@@ -2525,7 +2525,7 @@ private function execute_show_index_statement( WP_Parser_Node $node ): void {
25252525
array( $this->get_saved_db_name( $database ), $table_name )
25262526
);
25272527

2528-
$this->store_last_column_meta( $stmt );
2528+
$this->store_last_column_meta_from_statement( $stmt );
25292529
$index_info = $stmt->fetchAll( PDO::FETCH_OBJ );
25302530
$this->set_results_from_fetched_data( $index_info );
25312531
}
@@ -2588,7 +2588,7 @@ private function execute_show_table_status_statement( WP_Parser_Node $node ): vo
25882588
array( $this->get_saved_db_name( $database ) )
25892589
);
25902590

2591-
$this->store_last_column_meta( $stmt );
2591+
$this->store_last_column_meta_from_statement( $stmt );
25922592
$table_info = $stmt->fetchAll( PDO::FETCH_OBJ );
25932593
if ( false === $table_info ) {
25942594
$this->set_results_from_fetched_data( array() );
@@ -2640,7 +2640,7 @@ private function execute_show_tables_statement( WP_Parser_Node $node ): void {
26402640
array( $this->get_saved_db_name( $database ) )
26412641
);
26422642

2643-
$this->store_last_column_meta( $stmt );
2643+
$this->store_last_column_meta_from_statement( $stmt );
26442644
$table_info = $stmt->fetchAll( PDO::FETCH_OBJ );
26452645
if ( false === $table_info ) {
26462646
$this->set_results_from_fetched_data( array() );
@@ -2713,7 +2713,7 @@ private function execute_show_columns_statement( WP_Parser_Node $node ): void {
27132713
array( $this->get_saved_db_name( $database ), $table_name )
27142714
);
27152715

2716-
$this->store_last_column_meta( $stmt );
2716+
$this->store_last_column_meta_from_statement( $stmt );
27172717
$column_info = $stmt->fetchAll( PDO::FETCH_OBJ );
27182718
if ( false === $column_info ) {
27192719
$this->set_results_from_fetched_data( array() );
@@ -2752,7 +2752,7 @@ private function execute_describe_statement( WP_Parser_Node $node ): void {
27522752
array( $this->get_saved_db_name( $database ), $table_name )
27532753
);
27542754

2755-
$this->store_last_column_meta( $stmt );
2755+
$this->store_last_column_meta_from_statement( $stmt );
27562756
$column_info = $stmt->fetchAll( PDO::FETCH_OBJ );
27572757
$this->set_results_from_fetched_data( $column_info );
27582758
}
@@ -4648,7 +4648,7 @@ private function translate_update_list_in_non_strict_mode( string $table_name, W
46484648
*
46494649
* @param PDOStatement $stmt The PDOStatement object containing the SQLite column metadata.
46504650
*/
4651-
private function store_last_column_meta( PDOStatement $stmt ): void {
4651+
private function store_last_column_meta_from_statement( PDOStatement $stmt ): void {
46524652
$this->last_column_meta = array();
46534653
for ( $i = 0; $i < $stmt->columnCount(); $i++ ) {
46544654
/*

0 commit comments

Comments
 (0)