Displaying 20 results from an estimated 110 matches similar to: "ResultSetMetaData"
2011 Feb 27
1
Database abstraction
Hi all -
I've been working on a lite ORM and database abstraction package for R.
Formatting complex queries by hand has always been an error-prone hassle, so
I've tried to do away with that as much as possible, instead, using R
objects to represent elements of a database system (statements, clauses,
operators, functions, fields, tables, etc.). R5 classes have made the
development of this
2008 Jun 17
4
Formating Date Field
First.jsp
------------------
<jsp:usebean id="db" class="db.dbClass" scope=session/>
<html>
<body>
<form action="MyAction.jsp" method="post">
<% ResultSet rs=db.executeQuery("select no,name from mytable");
while(rs.next())
{%>
<input type=checkbox value=<%=rs.getString(1)%> onclick=callJs(<
2006 May 10
3
migrations :timestamp becomes :datetime in mySql
For some reason whenever I try and create a timestamp column with
migrations and mysql I get a datetime column instead. That''s kind of
annoying because I want the column to update every time the row gets
changed. Is this a bug, or is there something I can do about it?
(Obviously I can manually change my mysql table, but that kind of
defeats the point of migrations!)
In my migration
2009 Aug 10
1
Building tomcat6, SRPM jakarta-commons-dbcp-1.2.1-7jpp.ep1.2.ep5.el5.src.rpm fails to build
Hello all
I'm trying to build tomcat6 from the SRPMs provided at [1], but I appear to have hit a wall. One of the dependencies of tomcat6-6.0.18-8.18.1.noarch [2] is jakarta-commons-dbcp-tomcat5 (provided by jakarta-commons-dbcp [3]). (I don't see why it's requiring tomcat5 components, maybe that's my problem).
When I try to build jakarta-commons-dbcp, compilation fails:
BEGIN
2010 Oct 28
2
ActiveRecord JDBC error Generated keys not requested
I''m getting the following error while connecting to mysql using
activerecord-jdbcmysql-adapter (1.0.2). Rails 3.0.1.
ActiveRecord::JDBCError: Generated keys not requested. You need to
specify Statement.RETURN_GENERATED_KEYS to Statement.executeUpdate()
or Connection.prepareStatement().: SET SQL_AUTO_IS_NULL=0
This occurs not matter what application I run it in to e.g. rake,
rails
2006 Mar 23
8
ActiveRecord & Prepared Statement
I searched the archives and found a thread about it, but I didn''t
understand: are prepared statement used by ActiveRecord on those
databases that could handle them (Postgresql, Mysql, Oracle etc)?
In case they are not used, are they planned? Is there a roadmap about
Rails I can find somewhere?
2006 Jun 23
0
help... can''t run ActiveRecord unit tests to test bug fix
I found a bug in ActiveRecord. Being a good netizen, I thought I
would write a test to illustrate the bug, fix it, and then submit a
patch to the maintainers.
However, I can''t run the AR tests. I followed the instructions in
RUNNING_UNIT_TESTS but it generates an error immediately
/opt/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/test cremes$
ruby -I
2004 Jan 29
0
Destination routing and its implementations?
Hello everyone,
I was wondering how i should do destination routing. I now do
# ip rule add to x.x.x.x table some_table
for each address i need. I was thinking about fwmark option. The problem is
that routing decision is made after PREROUTING and not POSTROUTING (name obviously
sais that :)) and i need to use -o. In OUTPUT this marking can''t be done.
I made this conclusion by studying
2006 Mar 21
4
activerecord - mysql blobs...
I''m struggling with activerecord and mysql blobs (uploading files)...
blobs over 400K-ish cause the below exception...
ActiveRecord::StatementInvalid in File#upload
Mysql::Error: Lost connection to MySQL server during query:
I''ve tried blob, mediumblob, and longblob...
I''m using windows xp for development - and have not installed the mysql
gem...
simlar google
2006 Jul 28
7
Uploading 2+ files simultaneously
I''m having trouble uploading 2+ files simultaneously (from different
client machines)...
the upload page just hangs...
I''m running...
- ruby 1.8.4 (2005-12-24) [i686-linux]
- rails 1.1.4
- red hat el 4
- apache
- fcgi (0.8.7, 0.8.6.1)
- firefox 1.5.0.5
- httpd.conf
<IfModule mod_fastcgi.c>
FastCgiIpcDir /tmp/fcgi_ipc/
AddHandler fastcgi-script .fcgi
FastCGIConfig
2006 May 25
2
basecamp prefixes
basecamp prefixes each url with a client name...
client1.updatelog.com/todos
client2.updatelog.com/milestones
any ideas on how this is done?
- one app?
- one app per client?
- one app per domain?
--
Posted via http://www.ruby-forum.com/.
2010 Oct 30
12
Anyone successfully ran JRuby 1.5.3, Rails 3, Tomcat6
Hi,
I''ve been trying to get JRuby 1.5.3 with Rails 3 to run on the Tomcat6
server with little success.
Has anyone been able to do this? If so, what issues did you have to
overcome to get this to work?
Also, is this a combination that you would recommend for a production
site, or is it all too new and untested?
The latest issue I''m stuck on right now is with the mysql-connector-
2006 Jul 18
2
FLV Player
I need a flv player - any recommendations?
--
Posted via http://www.ruby-forum.com/.
2006 Aug 13
5
problems with file_column plugin
1) installation is not as smooth as some other plug-ins. If you follow
the instructions on
http://www.kanthak.net/opensource/file_column/
it makes a directory called trunk instead of file_column. You have to
manually rename it to file_column. I guess this is a minor annoyance but
it gives me the feeling that things aren''t quite like other plugins.
2) I get this error: undefined
2020 Jun 19
0
Wine release 5.11
The Wine development release 5.11 is now available.
What's new in this release (see below for details):
- Wine Mono engine updated to 5.1.0, with WpfGfx library support.
- More work on the separate Unix library for NTDLL.
- Beginnings of a NetIO kernel driver implementation.
- Initial support for the Print Ticket API.
- Removal of the obsolete 32-bit PowerPC architecture.
-
2006 Jul 26
8
team captain - habtm w/has_one...
the below...
class User < ActiveRecord::Base
has_and_belongs_to_many :teams
class Team < ActiveRecord::Base
has_and_belongs_to_many :users
has_one :captain, :class_name => ''User''
produces the error...
Mysql::Error: Unknown column ''users.team_id'' in ''where clause'': SELECT *
FROM users WHERE (users.team_id = 1) LIMIT 1
i
2011 Mar 02
2
Ambiguous columns from related tables
Hi all,
I''ve got an issue where i have a search page that passes a field which is then used as the criteria of the search. Problem is, I''ve set an AR has_many relationship in the model that joins one table to another - both tables have the same column name I''m searching on, so naturally I get an ambiguous error in sql - it doesnt know which column to apply the search
2005 Oct 14
10
Active Record: Prepared Statements?
Hello all,
my first project is on it''s way, and I am loving it!
But, and that''s a big BUT:
Active Record does not use prepared statements! How is that? Everybody is
bragging about performance and the most obvious tuning measure is missing.
Ok, I don''t know, if MySQL can even do them as I am using Postgres, but
still.
I started looking at the code and it is not
2012 Jan 02
4
Which AR Interfaces Leverage PreparedStatements/Binds?
I could not find the answer to this in a few Google searches and thought I would ask.
So when are prepared statements best leveraged in ActiveRecord''s interface? I never really noticed before, but simple condition hashes or scopes do not pass down the binds so that prepared statements are leveraged. So a `Car.find(1)` would but things like `Car.where(:id => 1).first` do not. Is it a
2006 Jan 13
19
Problems with scaffold''s parameter on Oracle
Hi
I run Ruby on Rails on Oracle XE.
I have a simple table:
create table customer(id number primary key, name varchar2(100));
And
ruby script\generate model Customer
ruby script\generate controller Customer
http://localhost:3000/customer/
- show a fine list, but when I click show/edit/destroy, I get an
ORA-01722:
OCIError: ORA-01722: invalid number: select * from (select raw_sql_.*,