Skip to content

Commit

Permalink
Merge branch 'hotfix/5.22'
Browse files Browse the repository at this point in the history
  • Loading branch information
dregad committed May 22, 2023
2 parents 931a81f + e631bd9 commit d4f9f45
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 18 deletions.
6 changes: 3 additions & 3 deletions adodb-perf.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,7 @@ function SplitSQL($sql)
* <code>ADODB_OPT_LOW</code> for CPU-less optimization
* Default is LOW <code>ADODB_OPT_LOW</code>
* @author Markus Staab
* @return Returns <code>true</code> on success and <code>false</code> on error
* @return bool true on success, false on error
*/
function OptimizeTables()
{
Expand Down Expand Up @@ -1048,7 +1048,7 @@ function OptimizeTables()
* <code>ADODB_OPT_LOW</code> for CPU-less optimization
* Default is LOW <code>ADODB_OPT_LOW</code>
* @author Markus Staab
* @return Returns <code>true</code> on success and <code>false</code> on error
* @return bool true on success, false on error
*/
function OptimizeTable( $table, $mode = ADODB_OPT_LOW)
{
Expand All @@ -1062,7 +1062,7 @@ function OptimizeTable( $table, $mode = ADODB_OPT_LOW)
* optimize each using <code>optmizeTable()</code>
*
* @author Markus Staab
* @return Returns <code>true</code> on success and <code>false</code> on error
* @return bool true on success, false on error
*/
function optimizeDatabase()
{
Expand Down
4 changes: 2 additions & 2 deletions adodb-xmlschema.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ function addData( $attributes ) {
* @param string $type ADODB datadict field type.
* @param string $size Field size
* @param array $opts Field options array
* @return array Field specifier array
* @return void
*/
function addField( $name, $type, $size = NULL, $opts = NULL ) {
$field_id = $this->FieldID( $name );
Expand Down Expand Up @@ -446,7 +446,7 @@ function addField( $name, $type, $size = NULL, $opts = NULL ) {
* @param string $field Field name
* @param string $opt ADOdb field option
* @param mixed $value Field option value
* @return array Field specifier array
* @return void
*/
function addFieldOpt( $field, $opt, $value = NULL ) {
if( !isset( $value ) ) {
Expand Down
16 changes: 8 additions & 8 deletions adodb-xmlschema03.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ function addData( $attributes ) {
* @param string $type ADODB datadict field type.
* @param string $size Field size
* @param array $opts Field options array
* @return array Field specifier array
* @return void
*/
function addField( $name, $type, $size = NULL, $opts = NULL ) {
$field_id = $this->fieldID( $name );
Expand Down Expand Up @@ -486,7 +486,7 @@ function addField( $name, $type, $size = NULL, $opts = NULL ) {
* @param string $field Field name
* @param string $opt ADOdb field option
* @param mixed $value Field option value
* @return array Field specifier array
* @return void
*/
function addFieldOpt( $field, $opt, $value = NULL ) {
if( $this->currentPlatform ) {
Expand Down Expand Up @@ -766,7 +766,7 @@ function _tag_close( $parser, $tag ) {
* Adds a field to the index
*
* @param string $name Field name
* @return string Field list
* @return string[] Field list
*/
function addField( $name ) {
$this->columns[$this->fieldID( $name )] = $name;
Expand All @@ -779,7 +779,7 @@ function addField( $name ) {
* Adds options to the index
*
* @param string $opt Comma-separated list of index options.
* @return string Option list
* @return string[] Option list
*/
function addIndexOpt( $opt ) {
$this->opts[] = $opt;
Expand Down Expand Up @@ -929,10 +929,10 @@ function addField( $attributes ) {
}

/**
* Adds options to the index
* Adds data.
*
* @param string $opt Comma-separated list of index options.
* @return string Option list
* @param string $cdata Data to add
* @return void
*/
function addData( $cdata ) {
// check we're in a valid field
Expand Down Expand Up @@ -1782,7 +1782,7 @@ function saveSQL( $filename = './schema.sql' ) {
$sqlArray = $this->sqlArray;
}
if( !isset( $sqlArray ) ) {
return FALSE;
return false;
}

$fp = fopen( $filename, "w" );
Expand Down
2 changes: 1 addition & 1 deletion drivers/adodb-csv.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ function _close()
}
} // class

class ADORecordset_csv extends ADORecordset {
class ADORecordset_csv extends ADORecordSet {

function _close()
{
Expand Down
4 changes: 2 additions & 2 deletions drivers/adodb-ibase.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ function MetaIndexes ($table, $primary = FALSE, $owner=false)


// See http://community.borland.com/article/0,1410,25844,00.html
function RowLock($tables,$where,$col=false)
function rowLock($table, $where, $col = false)
{
if ($this->autoCommit) {
$this->BeginTrans();
Expand Down Expand Up @@ -734,7 +734,7 @@ function SQLDate($fmt, $col=false)
Class Name: Recordset
--------------------------------------------------------------------------------------*/

class ADORecordset_ibase extends ADORecordSet
class ADORecordSet_ibase extends ADORecordSet
{

var $databaseType = "ibase";
Expand Down
3 changes: 3 additions & 0 deletions drivers/adodb-mysqli.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -1363,6 +1363,9 @@ function getCharSet()
return $this->charSet ?: false;
}

/**
* @deprecated 5.21.0 Use {@see setConnectionParameter()} instead
*/
function setCharSet($charset)
{
if (!$this->_connectionID || !method_exists($this->_connectionID,'set_charset')) {
Expand Down
2 changes: 1 addition & 1 deletion drivers/adodb-sqlanywhere.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function load_blobvar_from_var($blobVarName, &$varName) {
$conn->Execute('INSERT INTO blobtable (id, blobcol) VALUES (1, null)');
$conn->UpdateBlob('blobtable','blobcol',$blob,'id=1');
*/
function UpdateBlob($table,$column,&$val,$where,$blobtype='BLOB')
function updateBlob($table, $column, $val, $where, $blobtype = 'BLOB')
{
$blobVarName = 'hold_blob';
$this->create_blobvar($blobVarName);
Expand Down
2 changes: 1 addition & 1 deletion perf/perf-oci8.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
if (!defined('ADODB_DIR')) die();


class perf_oci8 extends ADODB_perf{
class perf_oci8 extends adodb_perf{

var $noShowIxora = 15; // if the sql for suspicious sql is taking too long, then disable ixora

Expand Down

0 comments on commit d4f9f45

Please sign in to comment.