zendframework/zend-db

RowGateway with MySQL BIT column

Opened this issue · 1 comments

GeeH commented

This issue has been moved from the zendframework repository as part of the bug migration program as outlined here - http://framework.zend.com/blog/2016-04-11-issue-closures.html


Original Issue: https://api.github.com/repos/zendframework/zendframework/issues/7360
User: @visitek
Created On: 2015-03-23T20:05:26Z
Updated At: 2015-11-06T21:01:56Z
Body
There is a bug while saving data with BIT column in MySQL.

$row = new RowGateway(<primary>, <table>, <adapter>);
$row->saved = false;
$row->name = 'test1';
$row->save();
//echo $row->saved will outputs 0
$row->name = 'test2';
$row->save();
//echo $row->saved will outputs 1

So, it should keep boolean BIT mode.


This repository has been closed and moved to laminas/laminas-db; a new issue has been opened at laminas/laminas-db#118.