ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:loadbalancer:getconnection

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
v5:reference:loadbalancer:getconnection [2017/05/11 00:49] – [Usage] mnewnhamv5:reference:loadbalancer:getconnection [2017/05/11 00:51] (current) – [Usage] mnewnham
Line 68: Line 68:
  
 /* /*
-* Now construct a stored procedure and execute it against $db+* Now construct a stored procedure and execute it against $db
 +* because it is pinned, it will execute against the 'write' node
 */ */
 +$stmt = $db->PrepareSP('kmnProc');
 +$val1 = 'ADMIN';
 +$par1 = 'users';
 +$db->InParameter($stmt,$val1,$par1);
 +$db->OutParameter($stmt,$ret,'RETVAL');
 </code> </code>
  
v5/reference/loadbalancer/getconnection.1494456577.txt.gz · Last modified: by mnewnham