$dataProvider = 'native'; or 'mysql'-What is the difference?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
cecilchampenois
Forum Commoner
Posts: 47
Joined: Thu Nov 06, 2014 10:29 am
Location: Gilbert, Arizona
Contact:

$dataProvider = 'native'; or 'mysql'-What is the difference?

Post by cecilchampenois »

What is the difference between the two following lines of code?

Code: Select all

class ADODB_mysqli extends ADOConnection {
	var $databaseType = 'mysqli';
	var $dataProvider = 'native';

Code: Select all

class ADODB_mysqli extends ADOConnection {
	var $databaseType = 'mysqli';
	var $dataProvider = 'mysql';
Cecil Champenois
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: $dataProvider = 'native'; or 'mysql'-What is the differe

Post by Christopher »

My guess is that one is for the default PHP MySQL driver and the other if for the PHP native MySQL driver. Probably a configuration setting so the class knows what features are available.
(#10850)
Post Reply