C:/lib/adodb/drivers/adodb-mssql_n.inc.php-Dateireferenz

adodb-mssql_n.inc.php-Dateireferenz

gehe zum Quellcode dieser Datei

Datenstrukturen

class  ADORecordset_mssql_n
 

Variablen

if(!defined('SINGLEQUOTE'))
define('SINGLEQUOTE'drivers
adodb mssql inc php t an odd
number of single quotes(this
can cause problems below *and
should be considered one wrong
SQL).Exit with debug info.*/if((substr_count($sql
SINGLEQUOTE 
$regexp ) = '/(\\\\' . SINGLEQUOTE . '[^' . SINGLEQUOTE . '])/'
 
if(preg_match($regexp, $sql)) $pairs = array()
 Remove pairs of single-quotes. Mehr ...
 
if($list_of_pairs) $literals = array()
 Remove the rest of literals present in the query. Mehr ...
 
if($list_of_literals) if(!empty($literals))
if(!empty($literals)) 
$result = preg_replace("/((<@#@#@PAIR-(\d+)@#@#@>)+)N'/", "N'$1", $result)
 Analyse literals to prepend the N char to them if their contents aren't numeric. Mehr ...
 

Variablen-Dokumentation

if ($list_of_pairs) $literals = array()

Remove the rest of literals present in the query.

Definiert in Zeile 118 der Datei adodb-mssql_n.inc.php.

if (preg_match($regexp, $sql)) $pairs = array()

Remove pairs of single-quotes.

Definiert in Zeile 105 der Datei adodb-mssql_n.inc.php.

Wird benutzt von ADODB_Active_Record\Update().

$regexp = '/(\\\\' . SINGLEQUOTE . '[^' . SINGLEQUOTE . '])/'

Check we haven't any backslash + single quote combination. It should mean wrong backslashes use (bad magic_quotes_sybase?). Exit with debug info.

Definiert in Zeile 96 der Datei adodb-mssql_n.inc.php.

Wird benutzt von adodb_error_pg().

if (!empty($pairs)) if ($result!=$sql &&$this->debug) return $result = preg_replace("/((<@#@#@PAIR-(\d+)@#@#@>)+)N'/", "N'$1", $result)

Analyse literals to prepend the N char to them if their contents aren't numeric.

Re-apply pairs of single-quotes to the text.

Re-apply literals to the text Any pairs followed by N' must be switched to N' followed by those pairs (or strings beginning with single quotes will fail)

Print transformation if debug = on

Non numeric string, prepend our dear N

Definiert in Zeile 148 der Datei adodb-mssql_n.inc.php.

Wird benutzt von ADODB_postgres64\BlobDelete(), adoSchema\ConvertSchemaFile(), adoSchema\ConvertSchemaString(), oci_lob_desc(), ADODB_postgres64\pg_insert_id(), ADODB_oci8\SelectLimit() und adoSchema\TransformSchema().




Korrekturen, Hinweise und Ergänzungen

Bitte scheuen Sie sich nicht und melden Sie, was auf dieser Seite sachlich falsch oder irreführend ist, was ergänzt werden sollte, was fehlt usw. Dazu bitte oben aus dem Menü Seite den Eintrag Support Forum wählen. Es ist eine kostenlose Anmeldung erforderlich, um Anmerkungen zu posten. Unpassende Postings, Spam usw. werden kommentarlos entfernt.