search for: db_connect

Displaying 9 results from an estimated 9 matches for "db_connect".

2005 Feb 02
0
Re: VFS calls after disconnect
...nd map it to a network drive. Is there some way that this data can be preserved irrespective of the number of times that an already connected client tries a reconnection? Any help is highly appreciated! Thanks, Chetana static int connectCnt = 0; struct example_privates { char *some_string; int db_connection; }; static int example_connect(vfs_handle_struct *handle, connection_struct *conn, const char *service, const char* user) { struct example_privates *data = NULL; if ( connectCnt > 0 ) { DEBUG(0,("connection to client already exists\n")); SMB_VFS_HANDLE_GET_DATA(handle, dat...
2012 Aug 02
1
Joining R Local Dataset with Table from Database
Hi All, I want to join a table (Dataset) that is created in R with a table that is in oracle database. Can some one help me in accomplishing this task in R? Example Code: library(RODBC) DB_CONNECT <- odbcConnect("DSN_NAME") TABLE_JOIN <- sqlQuery(DB_CONNECT, "SELECT * FROM DB_TABLE WHERE COL_1 NOT IN (SELECT COL_1 FROM DATA_SET_R) ") Regards, Madana -- View this message in context: http://r.789695.n4.nabble.com/Joining-R-Local-Dataset-with-Table-from-Database-t...
2012 Aug 31
1
after_fork - ActiveRecord::AdapterNotSpecified
Hi all, I''m fighting with the after_fork hook and my sinatra application. The Sinatra app is using active_record, In my unciron.rb file I''m using preload_app true after_fork do |server, worker| ? defined?(ActiveRecord::Base) and ??? ActiveRecord::Base.establish_connection End but I always get the error: ERROR -- : ActiveRecord::AdapterNotSpecified
2006 Jun 27
1
Utility App using rails models
...for the new model file to work. Does anyone have an easier way? My current method is something like: # Database require ''rubygems'' require_gem ''activerecord'' require ''../../vendor/plugins/acts_as_logged/lib/acts_as_logged'' require ''db_connection'' require ''../models/claim'' require ''../models/mbr_item_category'' ... code ... db_connection is just a little helper file I created so that all my utils can be centrally configured to connect to the database, it looks something like: ActiveRecor...
2004 Feb 17
0
VFS module programmieren
...them as they are. (e.g. this could be the variable for the private debug class.) If YES pack all this data into a struct. You can use handle->data to point to such a struct on a per connection basis. e.g. if you have such a struct: struct example_privates { char *some_string; int db_connection; }; first way of doing it: static int example_connect(vfs_handle_struct *handle, connection_struct *conn, const char *service, const char* user) { struct example_privates *data = NULL; /* alloc our private data */ data = (struct example_privates *)talloc_zero(conn->mem_ctx, sizeof(s...
2004 Dec 29
0
dovecot_auth / pam_mysql login errors
...22:10 websrv dovecot-auth: table changed. Dec 29 12:22:10 websrv dovecot-auth: usercolumn changed. Dec 29 12:22:10 websrv dovecot-auth: passwdcolumn changed. Dec 29 12:22:10 websrv dovecot-auth: crypt changed. Dec 29 12:22:10 websrv dovecot-auth: sqllog changed. Dec 29 12:22:10 websrv dovecot-auth: db_connect called. Dec 29 12:22:10 websrv dovecot-auth: returning 0 . Dec 29 12:22:10 websrv dovecot-auth: db_checkpasswd called. Dec 29 12:22:10 websrv dovecot-auth: pam_mysql: where clause = Dec 29 12:22:10 websrv dovecot-auth: SELECT password FROM email_users WHERE log in='myname' De...
2009 Aug 06
2
robots.txt
Hi all, I have again noticed that the wiki does not really show up in search results and wonder if it has any impact that robots.txt on wiki.centos.org is empty. Perhaps it should at least contain User-agent: * ? Best Regards Marcus
2005 Dec 31
1
can't switch off login debuggin
...nged. dovecot-auth: passwdcolumn changed. dovecot-auth: crypt changed. dovecot-auth: logtable changed. dovecot-auth: logmsgcolumn changed. dovecot-auth: logusercolumn changed. dovecot-auth: loghostcolumn changed. dovecot-auth: logpidcolumn changed. dovecot-auth: logtimecolumn changed. dovecot-auth: db_connect called. dovecot-auth: returning 0 . dovecot-auth: db_checkpasswd called. dovecot-auth: pam_mysql: where clause = dovecot-auth: SELECT password FROM accountuser WHERE username='XXXX' dovecot-auth: sqlLog called. dovecot-auth: insert into log (msg, user, host, pid, time) values('AUTH SUC...
2012 May 15
5
setting up the SQLite database
I know this isn''t Python, but I''d like to get a view on the ''one obvious'' way to set up an SQLite (or other) database and its location per-app. I''ve got a bit lost with the Camping 2 changes and various code snippets I have kicking around. 1. is it best to set up the DB creation/connection: 1.1 at the end of the app