From 7b0da839de52476eb3707f3e4b7dc313816e1810 Mon Sep 17 00:00:00 2001 From: Sergey Tsalkov Date: Fri, 8 Nov 2013 14:14:46 -0800 Subject: [PATCH] add yet another test for this weird bug people are reporting tests *still* all pass, I can't reproduce the bug --- simpletest/BasicTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/simpletest/BasicTest.php b/simpletest/BasicTest.php index 7580a76..bd408aa 100644 --- a/simpletest/BasicTest.php +++ b/simpletest/BasicTest.php @@ -399,6 +399,11 @@ class BasicTest extends SimpleTest { DB::update('profile', array('signature' => $data), 'id=%i', 1); $signature = DB::queryFirstField("SELECT signature FROM profile WHERE id=%i", 1); $this->assert($signature === $data); + + DB::update('profile',array('signature'=> "%li "),"id = %d",1); + $signature = DB::queryFirstField("SELECT signature FROM profile WHERE id=%i", 1); + $this->assert($signature === "%li "); + }