<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Actionscript vs Postgres &#8211; Boolean Values</title>
	<atom:link href="http://www.wildwebworks.com/blogs/2009/04/actionscript-vs-postgres-boolean-values/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wildwebworks.com/blogs/2009/04/actionscript-vs-postgres-boolean-values/</link>
	<description>Programming</description>
	<lastBuildDate>Mon, 05 Oct 2009 18:01:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Olivier</title>
		<link>http://www.wildwebworks.com/blogs/2009/04/actionscript-vs-postgres-boolean-values/comment-page-1/#comment-82</link>
		<dc:creator>Olivier</dc:creator>
		<pubDate>Fri, 21 Aug 2009 22:04:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.wildwebworks.com/blogs/?p=31#comment-82</guid>
		<description>Hello,

Thanks for explaining this problem.

I&#039;m using MySQL with PDO and I had to use your AS3 class BooleanConverter to get the correct values. But I don&#039;t need to convert back from AS3 to PHP.

Now it looks like I&#039;ve to do the same kind of class to convert MySQL datetime into AS3 Date.</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>Thanks for explaining this problem.</p>
<p>I&#8217;m using MySQL with PDO and I had to use your AS3 class BooleanConverter to get the correct values. But I don&#8217;t need to convert back from AS3 to PHP.</p>
<p>Now it looks like I&#8217;ve to do the same kind of class to convert MySQL datetime into AS3 Date.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paweł</title>
		<link>http://www.wildwebworks.com/blogs/2009/04/actionscript-vs-postgres-boolean-values/comment-page-1/#comment-81</link>
		<dc:creator>Paweł</dc:creator>
		<pubDate>Tue, 04 Aug 2009 07:52:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.wildwebworks.com/blogs/?p=31#comment-81</guid>
		<description>create function bool_to_int(boolean) returns int as &#039;
select case when $1 then 1 else 0 end
&#039; language sql strict immutable;

create operator @ (
    leftarg = boolean,
    procedure = bool_to_int
);

create table test (b boolean);
insert into test values (true);
insert into test values (false);
insert into test values (null);

select b,b@ from test;

create view testv (b) as
select b@ from test;

select * from testv;</description>
		<content:encoded><![CDATA[<p>create function bool_to_int(boolean) returns int as &#8216;<br />
select case when $1 then 1 else 0 end<br />
&#8216; language sql strict immutable;</p>
<p>create operator @ (<br />
    leftarg = boolean,<br />
    procedure = bool_to_int<br />
);</p>
<p>create table test (b boolean);<br />
insert into test values (true);<br />
insert into test values (false);<br />
insert into test values (null);</p>
<p>select b,b@ from test;</p>
<p>create view testv (b) as<br />
select b@ from test;</p>
<p>select * from testv;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
