hpdl
|
1
|
1
|
<?php
|
|
2
|
/*
|
mattice
|
151
|
3
|
$Id: mysql_innodb.php 1498 2007-03-29 14:04:50Z hpdl $
|
hpdl
|
1
|
4
|
|
|
5
|
osCommerce, Open Source E-Commerce Solutions
|
|
6
|
http://www.oscommerce.com
|
|
7
|
|
|
8
|
Copyright (c) 2004 osCommerce
|
|
9
|
|
hpdl
|
1498
|
10
|
This program is free software; you can redistribute it and/or modify
|
|
11
|
it under the terms of the GNU General Public License v2 (1991)
|
|
12
|
as published by the Free Software Foundation.
|
hpdl
|
1
|
13
|
*/
|
|
14
|
|
|
15
|
require('mysql.php');
|
|
16
|
|
|
17
|
class osC_Database_mysql_innodb extends osC_Database_mysql {
|
hpdl
|
368
|
18
|
var $use_transactions = true,
|
|
19
|
$use_fulltext = false,
|
|
20
|
$use_fulltext_boolean = false;
|
hpdl
|
1
|
21
|
|
|
22
|
function osC_Database_mysql_innodb($server, $username, $password) {
|
|
23
|
$this->osC_Database_mysql($server, $username, $password);
|
|
24
|
}
|
hpdl
|
368
|
25
|
|
|
26
|
function prepareSearch($columns) {
|
|
27
|
$search_sql = '(';
|
|
28
|
|
|
29
|
foreach ($columns as $column) {
|
|
30
|
$search_sql .= $column . ' like :keyword or ';
|
|
31
|
}
|
|
32
|
|
|
33
|
$search_sql = substr($search_sql, 0, -4) . ')';
|
|
34
|
|
|
35
|
return $search_sql;
|
|
36
|
}
|
hpdl
|
1
|
37
|
}
|
|
38
|
?>
|