Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: CI4 - > MySQLI Database -> query return result object even if error
Post: RE: CI4 - > MySQLI Database -> query return result...

John_Betong Wrote: (07-11-2020, 05:47 PM) -- @Johannes, > I did a test to see the Database objects and how the handle invalid queries. The logic is that if the database query does not return a vali...
4,588 Views
5 Replies
07-12-2020, 09:16 PM
johannes
    Thread: CI4 - > MySQLI Database -> query return result object even if error
Post: RE: CI4 - > MySQLI Database -> query return result...

Hi there. Okay I discovered a errors in my post. Firstly query returns a object based on the BaseConnection class that will return a BaseResult object basically always. Thus I have to check the obj...
4,588 Views
5 Replies
07-11-2020, 01:50 PM
johannes
    Thread: Change Request for Database\MySQLi getFieldData function
Post: RE: Change Request for Database\MySQLi getFieldDat...

I added a change request for this if people are happy with it https://github.com/codeigniter4/CodeIgniter4/pull/3273
1,828 Views
1 Replies
07-11-2020, 06:43 AM
johannes
    Thread: CI4 - > MySQLI Database -> query return result object even if error
Post: RE: CI4 - > MySQLI Database -> query return result...

Sorry I know I am adding to this but want to mention that hasError does not help (https://codeigniter.com/user_guide/database/queries.html#query-basics) as it seems not of the drivers implement th...
4,588 Views
5 Replies
07-11-2020, 05:19 AM
johannes
    Thread: CI4 - > MySQLI Database -> query return result object even if error
Post: RE: CI4 - > MySQLI Database -> query return result...

Note I am in production mode thus the DBDebug = false then , thus in theory it should return false based on the logic in mysqli driver PHP Code: -- try { return $this->connID->query($this->prep...
4,588 Views
5 Replies
07-11-2020, 05:03 AM
johannes
    Thread: CI4 - > MySQLI Database -> query return result object even if error
Post: CI4 - > MySQLI Database -> query return result obj...

Good day I did a test to see the Database objects and how the handle invalid queries. The logic is that if the database query does not return a valid result that false is returned else the resourc...
4,588 Views
5 Replies
07-11-2020, 04:49 AM
johannes
    Thread: Services::negotiator -> gzip -> ob_gzhandler
Post: Services::negotiator -> gzip -> ob_gzhandler

Good day can somebody please tell me what is best practice to seng a gzipped stream back to client via CI4 ?\ I have the following logic todo this before a JSON string gets send back PHP Cod...
792 Views
0 Replies
07-11-2020, 04:27 AM
johannes
    Thread: FormatterInterface / JSONFormatter -> options
Post: FormatterInterface / JSONFormatter -> options

Good day I hope this is the correct place to request suggest this. I wanted to ask if it wont be possible to add a way to or pass possible option parameters to the formatter or have it as a va...
1,262 Views
0 Replies
07-09-2020, 12:44 PM
johannes
    Thread: Change Request for Database\MySQLi getFieldData function
Post: Change Request for Database\MySQLi getFieldData fu...

Good day. I would like to suggest a change to the getFieldData function. I wanted to post via github but dunno the best method, thus hope this will help. Basically the type value comes back as a n...
1,828 Views
1 Replies
07-09-2020, 11:25 AM
johannes

Theme © iAndrew 2016 - Forum software by © MyBB