Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsherlock authored and davidsherlock committed Sep 19, 2023
1 parent aae0ec1 commit aca075c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/Math_Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -478,8 +478,6 @@ public function get_result(): mixed {

$query = $wpdb->prepare( $query, $placeholders );

var_dump( $query );

// Execute the database query based on GROUP BY
if ( ! empty( $group_by ) ) {
$results = $wpdb->get_results( $query, OBJECT );
Expand Down Expand Up @@ -597,9 +595,6 @@ protected function generate_where_conditions( array &$placeholders ): array {
* @throws Exception If an error occurs during the condition generation.
*/
protected function generate_in_condition( string $column_name, array $values, array &$placeholders, array &$where_conditions, string $condition_type ): void {
if ( ! is_array( $values ) ) {
throw new \Exception( 'Values must be an array for ' . $condition_type . ' condition.' );
}

// Determine the placeholder type for each value
$placeholder_types = array_map( array( $this, 'get_placeholder_type' ), $values );
Expand Down

0 comments on commit aca075c

Please sign in to comment.