ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 4664


Ignore:
Timestamp:
Dec 12, 2007, 11:49:54 AM (12 years ago)
Author:
ogawa
Message:

#1562:DB関数でdsn_nameが指定できない

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/stable-2.10.x/webapp/lib/db/common.php

    r4122 r4664  
    5858function db_get_one($sql, $params = array(), $dsn_name = 'main_reader')
    5959{
    60     if ($dsn_name = 'main_reader') {
     60    if ($dsn_name === 'main_reader') {
    6161        $reader =& db_get_instance($dsn_name, true);
    6262    } else {
     
    6868function db_get_row($sql, $params = array(), $dsn_name = 'main_reader')
    6969{
    70     if ($dsn_name = 'main_reader') {
     70    if ($dsn_name === 'main_reader') {
    7171        $reader =& db_get_instance($dsn_name, true);
    7272    } else {
     
    7878function db_get_col($sql, $params = array(), $dsn_name = 'main_reader')
    7979{
    80     if ($dsn_name = 'main_reader') {
     80    if ($dsn_name === 'main_reader') {
    8181        $reader =& db_get_instance($dsn_name, true);
    8282    } else {
     
    8888function db_get_col_limit($sql, $from, $count, $params = array(), $dsn_name = 'main_reader')
    8989{
    90     if ($dsn_name = 'main_reader') {
     90    if ($dsn_name === 'main_reader') {
    9191        $reader =& db_get_instance($dsn_name, true);
    9292    } else {
     
    9898function db_get_col_page($sql, $page, $count, $params = array(), $dsn_name = 'main_reader')
    9999{
    100     if ($dsn_name = 'main_reader') {
     100    if ($dsn_name === 'main_reader') {
    101101        $reader =& db_get_instance($dsn_name, true);
    102102    } else {
     
    108108function db_get_assoc($sql, $params = array(), $dsn_name = 'main_reader')
    109109{
    110     if ($dsn_name = 'main_reader') {
     110    if ($dsn_name === 'main_reader') {
    111111        $reader =& db_get_instance($dsn_name, true);
    112112    } else {
     
    118118function db_get_assoc_limit($sql, $from, $count, $params = array(), $dsn_name = 'main_reader')
    119119{
    120     if ($dsn_name = 'main_reader') {
     120    if ($dsn_name === 'main_reader') {
    121121        $reader =& db_get_instance($dsn_name, true);
    122122    } else {
     
    128128function db_get_all($sql, $params = array(), $dsn_name = 'main_reader')
    129129{
    130     if ($dsn_name = 'main_reader') {
     130    if ($dsn_name === 'main_reader') {
    131131        $reader =& db_get_instance($dsn_name, true);
    132132    } else {
     
    138138function db_get_all_limit($sql, $from, $count, $params = array(), $dsn_name = 'main_reader')
    139139{
    140     if ($dsn_name = 'main_reader') {
     140    if ($dsn_name === 'main_reader') {
    141141        $reader =& db_get_instance($dsn_name, true);
    142142    } else {
     
    148148function db_get_all_page($sql, $page, $count, $params = array(), $dsn_name = 'main_reader')
    149149{
    150     if ($dsn_name = 'main_reader') {
     150    if ($dsn_name === 'main_reader') {
    151151        $reader =& db_get_instance($dsn_name, true);
    152152    } else {
Note: See TracChangeset for help on using the changeset viewer.