Skip to content

Commit

Permalink
MySQL SQL statements modified
Browse files Browse the repository at this point in the history
Minor changes made to MySQL SQL statements in order to support MDB2 package syntax.

Committer: petrsoukup
 Changes to be committed:
	modified:   Auth/OpenID/MySQLStore.php
  • Loading branch information
soukup-petr@centrum.cz authored and soukup-petr@centrum.cz committed Jun 6, 2011
1 parent 37bfd24 commit e50b134
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions Auth/OpenID/MySQLStore.php
Expand Up @@ -43,7 +43,9 @@ function setSQL()


$this->sql['set_assoc'] = $this->sql['set_assoc'] =
"REPLACE INTO %s (server_url, handle, secret, issued,\n". "REPLACE INTO %s (server_url, handle, secret, issued,\n".
" lifetime, assoc_type) VALUES (?, ?, !, ?, ?, ?)"; " lifetime, assoc_type) VALUES (?, ?, ?, ?, ?, ?)";
// MDB2 edit
// " lifetime, assoc_type) VALUES (?, ?, !, ?, ?, ?)";


$this->sql['get_assocs'] = $this->sql['get_assocs'] =
"SELECT handle, secret, issued, lifetime, assoc_type FROM %s ". "SELECT handle, secret, issued, lifetime, assoc_type FROM %s ".
Expand All @@ -66,12 +68,13 @@ function setSQL()
"DELETE FROM %s WHERE issued + lifetime < ?"; "DELETE FROM %s WHERE issued + lifetime < ?";
} }


/** // MDB2 edit
* @access private // /**
*/ // * @access private
function blobEncode($blob) // */
{ // function blobEncode($blob)
return "0x" . bin2hex($blob); // {
} // return "0x" . bin2hex($blob);
// }
} }


0 comments on commit e50b134

Please sign in to comment.