<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Forum PostgreSQL - python - psycopg2 - wstawianie % do ilike]]></title>
		<link>https://forum.postgresql.org.pl/viewtopic.php?id=1904</link>
		<description><![CDATA[Najświeższe odpowiedzi w python - psycopg2 - wstawianie % do ilike.]]></description>
		<lastBuildDate>Thu, 07 Nov 2013 13:55:56 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Odp: python - psycopg2 - wstawianie % do ilike]]></title>
			<link>https://forum.postgresql.org.pl/viewtopic.php?pid=4792#p4792</link>
			<description><![CDATA[Tylko że znalazłeś "interfejs" do sqlite a nie do postgresa :-P
Zapytałem gdzie indziej i mam rozwiązanie:
[url]http://pl.python.org/forum/index.php?topic=4125.0[/url]]]></description>
			<author><![CDATA[dummy@example.com (tomek)]]></author>
			<pubDate>Thu, 07 Nov 2013 13:55:56 +0000</pubDate>
			<guid>https://forum.postgresql.org.pl/viewtopic.php?pid=4792#p4792</guid>
		</item>
		<item>
			<title><![CDATA[Odp: python - psycopg2 - wstawianie % do ilike]]></title>
			<link>https://forum.postgresql.org.pl/viewtopic.php?pid=4791#p4791</link>
			<description><![CDATA[Nie mam pojęcia o pythonie ale patrząc na dokumentacje [url]http://docs.python.org/release/2.5.2/lib/sqlite3-Cursor-Objects.html[/url] to chyba powinno wyglądać tak:
sql = "select * "\
      "from tabela "\
      "where nazwisko ilike '%' "\
      "and wiek = :wiek"

cursor.execute(sql, {'wiek':23})]]></description>
			<author><![CDATA[dummy@example.com (c_michal)]]></author>
			<pubDate>Thu, 07 Nov 2013 13:17:21 +0000</pubDate>
			<guid>https://forum.postgresql.org.pl/viewtopic.php?pid=4791#p4791</guid>
		</item>
		<item>
			<title><![CDATA[python - psycopg2 - wstawianie % do ilike]]></title>
			<link>https://forum.postgresql.org.pl/viewtopic.php?pid=4790#p4790</link>
			<description><![CDATA[Może ktoś będzie umiał pomóc.
psycopg2 - python.

Nie umiem sobie poradzić, dostaję komunikat: 
[quote]<class 'psycopg2.ProgrammingError'>
ProgrammingError("argument formats can't be mixed",)[/quote]
[code]sql = "select * "\
      "from tabela "\
      "where nazwisko ilike '%' "\
      "and wiek = %(wiek)s"

cursor.execute(sql, {'wiek':23}}[/code]]]></description>
			<author><![CDATA[dummy@example.com (tomek)]]></author>
			<pubDate>Thu, 07 Nov 2013 10:40:10 +0000</pubDate>
			<guid>https://forum.postgresql.org.pl/viewtopic.php?pid=4790#p4790</guid>
		</item>
	</channel>
</rss>
