Articles tagged with "database", sorted by viewsX
Displaying 11-15 of 15 result(s).

Multiple Database Connection : Select database based on login user id, Dynamic

Created 8 months ago by Rajith RHow-tos4 comments – viewed 8,589 times – ( +6 )
create a class file under protected\components named RActiveRecord.php

Getting nulls from database instead of empty strings

Created 2 years ago by samdarkTips2 comments – viewed 8,467 times – ( +12 ) – version 1.1
To get null from database instead of empty strings you need to set up your DB connection as follows:
tags: database, null

Application-driven database with CDbMigration and an extended CActiveRecord

Created 2 years ago by Tudor IlisoiOthers0 comments – viewed 7,778 times – ( +8 ) – version 1.1
This is an incipient implementation of application-driven database with Yii.
tags: database, model

How to catch and log MySQL deadlock errors

Created 2 years ago by sebTips0 comments – viewed 7,593 times – ( +4 ) – version 1.1
This method allows to log InnoDB monitor output when deadlock error occured. This way we will have much more useful data to find and fix deadlock.
tags: database

Multi Data Provider

Created 6 months ago by Sharon LavieTips0 comments – viewed 4,273 times – ( +1 )
Lately, i needed to deal with the following scenario: read from two databases (db1,db2), and write to a third database (db3).