Jump to content

[SOLVED] Zend_Auth_Adapter_DbTable and Zend_Db_Adapter_Pdo_Sqlite error


nadeemshafi9

Recommended Posts

my application can connect to the guestbook sqlite db throgh its wired configuration but here i am having trouble , i think it has somthing to do with this :memory: buisness

 

$db = new Zend_Db_Adapter_Pdo_Sqlite(array('dbname' => ':memory:'));
                $authAdapter = new Zend_Auth_Adapter_DbTable($db);
                $authAdapter->setTableName('users');
                $authAdapter->setIdentityColumn('username');
                $authAdapter->setCredentialColumn('password');

 

 

Message: The supplied parameters to Zend_Auth_Adapter_DbTable failed to produce a valid sql statement, please check table and column names for validity.

 

CREATE TABLE [users] ( 
			[id] INTEGER  NOT NULL PRIMARY KEY,  
			[username] VARCHAR(50) UNIQUE NOT NULL,  
			[password] VARCHAR(32) NULL,  
			[real_name] VARCHAR(150) NULL)

 

any help , thanks

 

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.