1686e32d55
- fix HOMEPAGE/MASTER_SITES - fix WANTLIB in mysql - regen patches - make escaping more pgsql friendly - fixes to pgsql upsteam - no longer alpha - run pkg/DESCR through fmt(1) - use httpd(8) modules.sample for @sample feedback and ok merdely@
13 lines
1018 B
Plaintext
13 lines
1018 B
Plaintext
$OpenBSD: patch-src_pgsql_dispatch_h,v 1.1 2008/01/30 20:41:41 okan Exp $
|
|
--- src/pgsql_dispatch.h.orig Sat Jan 26 20:51:42 2008
|
|
+++ src/pgsql_dispatch.h Sat Jan 26 20:53:07 2008
|
|
@@ -4,7 +4,7 @@
|
|
|
|
#define PG_MP3_GET "SELECT name,filename,signature,artist,album,comment,track,year,genre FROM %s WHERE signature = '%s'"
|
|
#define PG_MP3_GET_RANDOM "SELECT name,filename,signature,artist,album,comment,track,year,genre FROM %s ORDER BY round(random()*1000) LIMIT 1"
|
|
-#define PG_MP3_INSERT "INSERT INTO %s (name,filename,signature,artist,album,comment,track,year,genre) VALUES ('%s','%s','%s','%s','%s','%s','%s','%s','%s')"
|
|
+#define PG_MP3_INSERT "INSERT INTO %s (name,filename,signature,artist,album,comment,track,year,genre) VALUES (E'%s',E'%s',E'%s',E'%s',E'%s',E'%s',E'%s',E'%s',E'%s')"
|
|
|
|
#define PG_MP3_GETS "SELECT name,filename,signature,artist,album,comment,track,year,genre FROM %s"
|
|
#define PG_MP3_GET_LIST "SELECT name,filename,signature,artist,album,comment,track,year,genre FROM %s WHERE signature IN (%s)"
|