Welcome Guest, Not a member yet? Register   Sign In
Parameter to database select function
#1

(This post was last modified: 01-08-2020, 08:49 AM by XTAZ.)

Hello!

In my opinion, function select must have a parameter for reset last select data

PHP Code:
public function select($select '*'bool $escape nullbool $reset false)
...
if (
$reset)
{
    
$this->QBSelect = [];
    
$this->QBNoEscape = [];
}
... 


Now in my code one function with join use $this->select('table.*'), so that not include addational table. After I use $this->select('table.id').

After in SQL:
SELECT table.*, table.id FROM ...

I dont want select all columns
Reply


Messages In This Thread
Parameter to database select function - by XTAZ - 01-08-2020, 08:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB