Oracle 5.0 Reference Manual page 2665

Table of Contents

Advertisement

bool mysqlnd_ms_match_wild(
string table_name,
string wildcard);
Finds whether a table name matches a wildcard pattern or not.
This function is not of much practical relevance with PECL mysqlnd_ms 1.1.0 because the plugin does
not support MySQL replication table filtering yet.
Parameters
table_name
wildcard
Return Values
Returns
TRUE table_name
Examples
Example 20.300.
<?php
var_dump(mysqlnd_ms_match_wild("schema_name.table_name", "schema%"));
var_dump(mysqlnd_ms_match_wild("abc", "_"));
var_dump(mysqlnd_ms_match_wild("table1", "table_"));
var_dump(mysqlnd_ms_match_wild("asia_customers", "%customers"));
var_dump(mysqlnd_ms_match_wild("funny%table","funny\%table"));
var_dump(mysqlnd_ms_match_wild("funnytable", "funny%table"));
?>
The above example will output:
bool(true)
bool(false)
bool(true)
bool(true)
bool(true)
bool(true)
20.7.6.8.5.
mysqlnd_ms_query_is_select
Copyright 1997-2012 the PHP Documentation Group. [2230]
mysqlnd_ms_query_is_select
Mysqlnd replication and load balancing plugin (mysqlnd_ms)
The table name to check if it is matched by the wildcard.
The wildcard pattern to check against the table name. The wildcard
pattern supports the same placeholders as MySQL replication filters
do.
MySQL replication filters can be configured by using the MySQL
Server configuration options
and --replicate-wild-do-db. Please, consult the MySQL
Reference Manual to learn more about this MySQL Server feature.
The supported placeholders are:
%
%
Placeholders can be escaped using \.
is matched by wildcard. Otherwise, returns
mysqlnd_ms_match_wild
- zero or more literals
- one literal
example
2645
--replicate-wild-do-table
FALSE

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents