similar to: Calling a stored proc from mySql 5

Displaying 20 results from an estimated 100000 matches similar to: "Calling a stored proc from mySql 5"

2006 Oct 13
1
MySQL stored proc authorization
On my Gentoo box until today I had dovecot-1.0_rc7 and used following entry in /etc/dovecot/dovecot-sql.conf password_query = call Authorize('%u', '%n', '%d') Simply put dovecot is calling my mysql stored routine which handles authorization. Until today, when I updated dovecot to dovecot-1.0_rc8 it worked flawlessly. With this version executing stored proc dies with:
2008 Jan 19
2
MySQL + R as a Replacement for SAS Proc SQL + Various Stat Procs
For cost reasons, I'd like to replace SAS on my PC under Win XP Pro. Nearly all my work involves medium-size datasets (100k-10M) records which I cleanup, relate, fliter and get into shape for analysis using SAS/SQL followed by standard statistical procedures, e.g. regression using SAS proc reg. It seems to me that this type of analysis could be done in MySQL followed by R, but I'd like
2006 Oct 21
1
mysql-5.0.26 stored procedure authorization, take 2
Last time I came up with a problem with concernin MySQL authorization with stored procedures. Timo helped me get going by with modified client_flags (MULTISTATEMENT keyword). Now all it happened again but from another way. My stored proce for MySQL is causing fillowing error: "Oct 21 12:39:22 haos dovecot: auth-worker(default): sql(user,192.168.X.X): Password query fai led: Commands out of
2006 Jan 20
1
Calling MySQL 5 stored procedures from app_mysql
Hello all. I am trying to use app_mysql. It works for selects and functions, but does not want to work with procedures. Pls have a look: Calling function: CREATE FUNCTION f_1(a VARCHAR(20)) RETURNS INTEGER RETURN (SELECT count(*) from peer where name = a); Result: -- Executing Macro("IAX2/100-3", "local|100") in new stack -- Executing MYSQL("IAX2/100-3",
2005 Dec 20
7
wrong id for activerecord object when using :joins in mysql
I''m using a find with a :joins clause, like this: :joins => "JOIN table_b ON table_b.id=table_b_id" The records returned are used in a scaffold generated list page. The edit, show, and destroy links are getting the wrong id. They are getting the id of the table b record. When I run the query using mysql, I see that the query returns *2* id columns, the id of the main
2005 Jul 24
0
[Active Record] Missing optional client encoding for MySQL 4.1
MySQL since version 4.1 can use utf-8 for multilangual tables, and it uses almost the same approach like PosgreSQL where Active Record API writes: ":encoding — An optional client encoding that is using in a SET client_encoding TO <encoding> call on connection." However ActiveRecord API does not mention how to set up optional client encoding for MySQL 4.1...
2005 Oct 24
3
bogus find_all in Rails 0.14.1
I have the following statement cl = ChatEvent.find_all("ev_type <> #{t} and chat_id = #{@params [:chat_id]} order by created_at") which produces the following error: #42000You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''order by created_at)'' at line 1: SELECT * FROM
2005 Sep 02
0
RE: ActiveRecord::StatementInvalid error after app has beenrunning for a while
I have this problem as well... After so many hours of inactivity, I get "statement invalid" and if I restart Apache or WEBrick, everything works fine again. What steps can I take to fix this? I don''t want to have to restart the server! -Brian -----Original Message----- From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
2008 Mar 20
0
Mixing stored procedure call with RoR db calls in the same function gives errors
Folks, I am using ruby 1.8.5 with rails 1.2.3 and have made changes to mysql_adapter.rb based on recommendations made here http://wiki.rubyonrails.org/rails/pages/StoredProceduresInMySql to be able to use stored procs in my code. I have changed this call in mysql_adapter.rb ConnectionAdapters::MysqlAdapter.new(mysql, logger, [host, username, password, database, port, socket], config) to
2006 Feb 03
2
RE: help with syntax
I guess the first step is reading up on OOP in javascript... http://www.webreference.com/js/column79/ http://www.codeproject.com/aspnet/JsOOP1.asp Then, check out the definitive prototype.js guide... http://www.sergiopereira.com/articles/prototype.js.html -----Original Message----- From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
2005 Aug 25
1
newbie questions about hosting address
Dear Rails groups, thank you for all the previous helps in this group, and me being a newbie is getting more comfortable with rails and now I finish most of the scaffold modification without much problem. My question is(I know it''s absolutely basic questions but I''m a real outsider :~( ) I have been developing in my own pc, now my office ''s other people will test on it,
2005 Aug 15
0
RE: has_many_belongs_to_many insert issues [CLOSED]
Found the issue. In the association table (categories.products) it is very important to use lowercase column names. I.e, product_id and category_id. I had Product_id and Category_id in SQL.... Gildas -----Original Message----- From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Cherruel,
2005 Mar 04
3
Boolean values
Hi, I''m using SQL Server. I have a BIT field. I have a fix and a question. This is a patch for a bug in the SQL Server adapter that causes any insert or update to fail: lib/active_record/connection_adapters/sqlserver_adapter.rb @@ -239,2 +239,2 @@ - when TrueClass then (column && column.type == :boolean ? "''t''" : "1")
2006 May 28
10
Equivalence of TSQL Stored Proc and User defined functions
RoR Equivalence of TSQL Stored Procedures and User defined functions As I browsed through the tutorials and online eBook ?Programming Ruby?, I have not come across the terms ?Stored Procedures? or ?User-defined functions? as I know them in SQL 2000. However, the online documentations in MySQL 5.0 show that Stored Procedures and User-defined functions are supported in MySQL 5.0. I wonder what
2005 Nov 16
4
What happened to mysql connection?
I''ve been using Rails for more than six months and until today I had no problem with mysql connection. It''s a Mac OS X 10.4 box having rails installed and updated by gem. I use a remote mysql server no local instance installed. Here''s my config: development: adapter: mysql database: hdchat host: 10.0.0.1 username: webuser password: test: adapter:
2007 Dec 10
0
SAS PROC NLMIXED into R
Dear R friends A while a go I sent an email to the epi-list and later to the help-list and no answer could fully illuminate my question. So Im trying again with a more specific matter. Im trying to work on a script (function) to analyse data from a diagnostic test meta-analysis with random effects. This was first described by an author using SAS witn PROC NLMIXED. Im not an expert in R and much
2006 May 18
1
RE: Rails-spinoffs Digest, Vol 12, Issue 29
Issue 1: <%= @pic %> instead of <% @pic %> -----Original Message----- From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of rails-spinoffs-request-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Sent: Wednesday, May 17, 2006 11:13 PM To:
2006 Feb 27
0
RE: FW: Calendar widget
Perfect, thanks Marco, great help! Now, why didn''t I think of that? Lol! -----Original Message----- From: Marco M. Jaeger [mailto:mail-yVS5avHIROZWk0Htik3J/w@public.gmane.org] Sent: Monday, February 27, 2006 2:02 PM To: ''www.dhtmlgoodies.com'' Subject: RE: FW: [Rails-spinoffs] Calendar widget Thank you Alf - I appreciate your fast response Marco M. Jaeger | Url:
2005 Oct 18
0
RE: Error: "onclick() is not a function"
I see what he is saying now. When you assign a click event with the Event.observe it does not allow you to call it with the $(''xxx'').onclick(); command as it''s looking for the onclick tag in the a tag. I''m stumped on a way to get this to work. Jon Whitcraft Web Application Developer Online Services - Indianapolis Motor Speedway (317) 492-8623
2008 Jan 30
1
Can before_filter using Proc and specify block ?
Hi, I see from this post http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/97e333daab05b725/8252c90cb9c36f6d?lnk=gst&q=passing+parameter+before_filter#8252c90cb9c36f6d it can specify the Proc in the before_filter function, but when specify when action apply this filter, it raise an syntax error, such as rthe following code before_filter {|controller|