Version 5.0.13

This commit is contained in:
Neo committed 2025-12-19 19:04:57 -08:00
1 parent b89858b2ff
commit 5efe744c5f
1407 files changed
+69690 -30177

No files matched your search

+22 -20
View File
@@ -1007,7 +1007,7 @@ class Db extends mysqli
/* Run */
$return = $this->returnQuery;
$stmt = $this->preparedQuery($query[0], $query[1]);
$stmt = $this->preparedQuery($query[0], $query[1] );
if( $return === TRUE )
{
@@ -1733,7 +1733,7 @@ class Db extends mysqli
/* Make sure we're connected */
$this->checkConnection(TRUE);
return $this->query($this->_createTableQuery( $data ));
return $this->query($this->_createTableQuery( $data ), read: false );
}
/**
@@ -1749,7 +1749,7 @@ class Db extends mysqli
/* Make sure we're connected */
$this->checkConnection(TRUE);
return $this->query("CREATE TABLE `{$this->prefix}{$newTableName}` LIKE `{$this->prefix}{$table}`");
return $this->query("CREATE TABLE `{$this->prefix}{$newTableName}` LIKE `{$this->prefix}{$table}`", read: false );
}
/**
@@ -1835,7 +1835,7 @@ class Db extends mysqli
$cleanUp = TRUE;
}
$result = $this->query("RENAME TABLE " . $query);
$result = $this->query("RENAME TABLE " . $query, read: false );
if( $cleanUp )
{
@@ -1869,7 +1869,7 @@ class Db extends mysqli
/* Force InnoDB as the storage engine */
$query .= "ENGINE=InnoDB";
$this->query($query);
$this->query($query, read: false );
}
/**
@@ -1917,7 +1917,8 @@ class Db extends mysqli
return '`' . $prefix . $val . '`';
},
( is_array( $table ) ? $table : array( $table ) )
) )
) ),
read: false
);
}
@@ -2143,7 +2144,7 @@ class Db extends mysqli
$query .= implode( ", ", $indexClauses );
$query .= " );";
return $this->query( $query );
return $this->query( $query, read: false );
}
/**
@@ -2166,7 +2167,7 @@ class Db extends mysqli
$query .= implode( ", ", $columnClauses );
$query .= ";";
return $this->query( $query );
return $this->query( $query, read: false );
}
/**
@@ -2179,7 +2180,7 @@ class Db extends mysqli
*/
public function addColumn(string $table, array $definition ): mysqli_result|bool
{
return $this->query("ALTER TABLE `{$this->prefix}{$this->escape_string( $table )}` ADD COLUMN {$this->compileColumnDefinition( $definition )}");
return $this->query("ALTER TABLE `{$this->prefix}{$this->escape_string( $table )}` ADD COLUMN {$this->compileColumnDefinition( $definition )}", MYSQLI_STORE_RESULT, false );
}
/**
@@ -2193,7 +2194,7 @@ class Db extends mysqli
*/
public function changeColumn(string $table, string $column, array $definition ): mysqli_result|bool
{
return $this->query("ALTER TABLE `{$this->prefix}{$this->escape_string( $table )}` CHANGE COLUMN `{$this->escape_string( $column )}` {$this->compileColumnDefinition( $definition )}");
return $this->query("ALTER TABLE `{$this->prefix}{$this->escape_string( $table )}` CHANGE COLUMN `{$this->escape_string( $column )}` {$this->compileColumnDefinition( $definition )}", MYSQLI_STORE_RESULT, false );
}
/**
@@ -2221,7 +2222,7 @@ class Db extends mysqli
$statement = "DROP COLUMN `{$this->escape_string( $column )}`";
}
return $this->query("ALTER TABLE `{$this->prefix}{$this->escape_string( $table )}` {$statement};");
return $this->query("ALTER TABLE `{$this->prefix}{$this->escape_string( $table )}` {$statement};", MYSQLI_STORE_RESULT, false );
}
/**
@@ -2247,7 +2248,7 @@ class Db extends mysqli
/* Otherwise just do it normally */
else
{
$this->query("ALTER TABLE `{$this->prefix}{$this->escape_string( $table )}` {$this->buildIndex( $table, $definition )}");
$this->query("ALTER TABLE `{$this->prefix}{$this->escape_string( $table )}` {$this->buildIndex( $table, $definition )}", MYSQLI_STORE_RESULT, false );
}
}
@@ -2267,11 +2268,11 @@ class Db extends mysqli
if( $this->checkForIndex( $table, $index ) )
{
$query = $this->dropIndex( $table, $index );
$this->dropIndex( $table, $index );
if( $returnQuery === TRUE )
{
$return = $query;
$return = $this->lastCompiledQuery;
}
}
@@ -2281,12 +2282,13 @@ class Db extends mysqli
}
$this->addIndex( $table, $definition );
if( $returnQuery === TRUE )
{
$this->returnQuery = FALSE;
$return .= ( $query ?? '' );
$this->lastCompiledQuery = $return . $this->lastCompiledQuery; // prepend the drop index first
$return .= $this->lastCompiledQuery;
return $return;
}
@@ -2364,7 +2366,7 @@ class Db extends mysqli
if ( $_index )
{
$return = $this->query("ALTER TABLE `{$this->prefix}{$this->escape_string( $table )}` {$_index};");
$return = $this->query("ALTER TABLE `{$this->prefix}{$this->escape_string( $table )}` {$_index};", MYSQLI_STORE_RESULT, false );
}
else
{
@@ -2892,7 +2894,7 @@ class Db extends mysqli
*/
public function createDatabase( string $name ): mysqli_result|bool
{
return ( $this->query("CREATE DATABASE ". $this->escape_string( "{$name}" )) );
return ( $this->query("CREATE DATABASE ". $this->escape_string( "{$name}" ), MYSQLI_STORE_RESULT, false ) );
}
/**