similar to: Fix for the consume_results leak

Displaying 16 results from an estimated 16 matches similar to: "Fix for the consume_results leak"

2010 Mar 25
2
A questions about consume_results (driver-pgsql.c)
Code -------------- static void consume_results(struct pgsql_db *db) { do { if (!PQconsumeInput(db->pg)) break; if (PQisBusy(db->pg)) return; } while (PQgetResult(db->pg) != NULL); if (PQstatus(db->pg) == CONNECTION_BAD) io_remove_closed(&db->io); else io_remove(&db->io); db->querying = FALSE; if (db->queue != NULL && db->connected)
2010 Apr 14
4
PostgreSQL driver supporting [round-robin] load balancing and redundancy [LONG]
One of the things my employer uses dovecot for is as mail download server for an 'e-mail purification service' (AV/ anti-spam) for smartphones. The service itself presently runs on a rented server somewhere in the UK and the corresponding 'web service' front-end and user account/ mail account database resides on a server in Germany. The UK dovecot server uses the PostgreSQL server
2010 Dec 06
1
SQL codes on Controller
I use the SQL code in the controller as follow: sql = ActiveRecord::Base.connection(); @countlikes = sql.execute("SELECT COUNT(rateint) as result FROM rates"); But it returns the resuls as #<PGresult:0xb6ea00e0> in the view i.e. @countlikes = #<PGresult:0xb6ea00e0> I wanted the integer value. I am wondering how to use sql codes in the controller -- You received this
2011 Jan 15
0
NoMethodError: undefined method `more_results' for #<Mysql>
I am trying to create rake task to import data from my old php application.But I can not connect to mysql database properly, when I run Old::User.all on rails console ,I get this error : NoMethodError: undefined method `more_results'' for #<Mysql> from /Library/Ruby/Gems/1.8/gems/activerecord-3.0.3/lib/active_record/connection_adapters/mysql_adapter.rb:623:in
2010 Mar 28
2
Improper use of IN-USE in case of a failed authentication
RFC2449 defines the IN-USE extended POP3 response code as 8.1.2. The IN-USE response code This occurs on an -ERR response to an AUTH, APOP, or PASS command. It indicates the authentication was successful, but the user's maildrop is currently in use (probably by another POP3 client). http://www.faqs.org/rfcs/rfc2449.html In contrast to this, the POP3 login code in
2004 Jun 23
0
UPDATE Patch for postgres enabled app_voicemail.c
I forgot to take out the portion that would read in the voicemail boxes from the text file. If you want to leave it in then you could have some voicemail boxes defined in the text voicemail.conf. I do not, so I have removed it. Below is the new patch: *** app_voicemail.c 2004-06-23 07:55:54.000000000 -0600 --- app_voicemail.c.new 2004-06-23 07:55:47.000000000 -0600 *************** *** 49,61 ****
2004 Jun 23
0
Patch for postgres enabled app_voicemail.c
Hello all, I am just getting going on building my system, but I thought I'd send you all a patch that I wrote so the command: show voicemail users issued from the CLI works properly when there is a postgres backend for the voicemail. The current version of the app does not display the voicemail boxes found in a database. It is called in the load_config function. I haven't done
2004 Oct 05
1
Cannot compile Meetme2
Hi, I cannot compile Meetme2 on Suse 9.1 and Asterisk rc2. For latter 2 errors I guess I need development for mysql and postgres, but what about first error ? Regards, Robert. In file included from app_meetme2.c:13: /usr/include/asterisk/lock.h: In function `ast_mutex_init': /usr/include/asterisk/lock.h:300: error: `PTHREAD_MUTEX_RECURSIVE' undeclared (first use in this function)
2004 Jun 08
1
Meetme2
Hi!! I try to install meetme2....i follow instructions that i found in http://www.areski.net/asterisk-meetme/about.php?s=0 but, when i modify the "Asterisk/apps/Makefile" and i run the "make" command, I have this type of error: [root@obelix apps]# make cc -pipe -fPIC -DUSEMYSQLVM -c -o app_meetme2.o app_meetme2.c app_meetme2.c:31:22: libpq-fe.h: No such file or directory
2005 Mar 05
2
cant compile app_meetme2
Dear all I am get the following problem when trying to compile app_meetme2 using mysql...it seems to want to use pgsql.....? anyone my Makefile looks like app_meetme2.o: app_meetme2.c #$(CC) -pipe $(CFLAGS) -c -o app_meetme2.o app_meetme2.c $(CC) -pipe -I/usr/local/include/mysql -L/usr/local/lib/mysql $(CFLAGS) -c -o app_meetme2.o app_meetme2.c app_meetme2.so: app_meetme2.o
2007 Mar 08
2
RE: Apache Install error on Centos 4.3
I get the following error on installing Apache 2.2.4 on, any ideas what might be wrong. make[1]: Entering directory `/home/odege/Desktop/httpd-2.2.4/support' make[2]: Entering directory `/home/odege/Desktop/httpd-2.2.4/support' /usr/lib/apr-1/build/libtool --silent --mode=link gcc -pthread -o htpasswd htpasswd.lo -lm /home/odege/Desktop/httpd-2.2.4/srclib/pcre/libpcre.la
2010 Mar 21
1
Possible programming error in maildir_mail_get_save_date
The maildir_mail_gate_save_date routine (lib-storage/index/maildir/maildir-mail.c) returns the save date when that was determined by looking at the ctime of the corresponding file. This is different from all other get_save_date routines which either return -1 if the date could not be determined or 0 to signal success. A particular problem caused by this would be that the
2010 Aug 20
0
Problem with db:create
My ruby app always created the databases on postgres just fine, but, a days ago, I''ve tried to create a new project and when I execute the command "db:create:all" i got the following error: Couldn''t create database for {"encoding"=>"unicode", "username"=> "-my username-", "adapter"=>"postgresql",
2006 Apr 21
4
Bus error in ./script/console with postgres (ext. library)
Is there some special magic that needs to be performed so that the C-based postgres extension library works with the Rails console? I have installed the postgres extension library (replacing the pure Ruby version: postgres-pr) from <http://ruby.scripting.ca/postgres/> Everything works great from WEBrick, but as soon as I fire up the console and try to use it, I get a bus error:
2009 Feb 26
0
Anyone successfully using CentOS 5 and a Keyspan USA-19HS USB-Serial Adapter?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I occasionally need to connect to a serial device and in the past have used minicom and the Keyspan USA-19HS adapter. It has worked flawlessly. Once I upgraded, I could never seem to make this work. The kernel recognizes the adapter, it gets properly assigned as /dev/ttyUSB0, and minicom seems to transmit data to it (as evidenced by the green LED
2007 Aug 23
0
[git patch] klibc dash 0.5.4 update
hello hpa, please pull for the dash update git pull git://brane.itp.tuwien.ac.at/~mattems/klibc.git maks with this changes: Alexey Gladkov (1): Check return code for getgroups and fwrite Herbert Xu (17): Remove unnecessary truncation in _STPUTC Always call conv_escape_str in echocmd Fix \c spillage across echo commands Release 0.5.3. Make eval with empty