similar to: Postgres sequencer and rails

Displaying 20 results from an estimated 600 matches similar to: "Postgres sequencer and rails"

2005 Nov 07
0
pk_and_sequence_for(table) bug?
Hi, Doing connection.pk_and_sequence_for doesn''t return anything when I''m positive I''ve got a PK and sequence on my table on column "id", see DDL below. Is this a bug? ?> Player.primary_key => "id" >> Player.connection.default_sequence_name "players" => "players_id_seq" >>
2006 Mar 02
1
Insert a data in Oracle with Rails
Hi, I tried many things to insert a data in an Oracle Table, but the Rails compiler never Works! I create this Oracle table: CREATE TABLE "FOO" ( "id" int NOT NULL primary key, "acolumn" VARCHAR(10) NULL ) and when i tried to insert a new row the Rails compiler tell me : OCIError: ORA-00904: invalid column name: INSERT INTO AGO.FOO (acolumn, id)
2008 Nov 28
0
Passing bigint (8-byte) values from Postgres to R using RPostgreSQL
Hi - I have a simple R script that inserts values into a Postgres table to generate a record that autogenerates a bigint unique ID (basically, a customized bigserial value). When I query the table to retrieve the bigint value, the value returned is not the same as the value created in the database (as evidenced by a direct query of the database table via pgAdmin). e.g. the value created should
2006 Oct 31
0
PSARC 2006/054 DTrace JNI Binding
Author: tomee Repository: /hg/zfs-crypto/gate Revision: 367993089b181886f94c88ffa5759d0626e95ad7 Log message: PSARC 2006/054 DTrace JNI Binding 6384263 PSARC 2006/054 DTrace JNI Binding Files: create: usr/src/lib/libdtrace_jni/Makefile create: usr/src/lib/libdtrace_jni/Makefile.com create: usr/src/lib/libdtrace_jni/amd64/Makefile create: usr/src/lib/libdtrace_jni/common/dtj_attr.c create:
2009 Aug 20
1
Understanding R code
What is 1. par.ests <- optimfit$par 2. fisher <- hessb(negloglik, par.ests, maxvalue=maxima); 3. varcov <- solve(fisher); 4. par.ses <- sqrt(diag(varcov)); Thanks a lot, fit.GEV <- function(maxima) { sigma0 <- sqrt((6. * var(maxima))/pi) mu0 <- mean(maxima) - 0.57722 * sigma0 xi0 <- 0.1 theta <- c(xi0, mu0, sigma0) #10/5/2007: removed assign() for maxima.nl
2006 Mar 01
7
Oracle Sequence & Rails
the compiler tell me it: invalid column name: INSERT INTO ago.prova_stats (cognome, nome, id, telefono) VALUES(''Medda'', ''Ivan'', :id, 70565611) where ago.prova_stats is the table used by me and that have only the columns ''cognome'',''nome'' and ''telefono''. My table hasn''t the column
2007 Oct 08
6
spec''in controllers request for nested routes
describe PlayersController, "handling GET /saltmines/games/1/players" do before do @game = mock_model(Game, :to_param => "1") @game.stub_association!(:players, :find => mock_model(Player)) end def do_get get :index, :game_id => @game end it "should be successful" do do_get response.should be_success end it "should
2008 Jan 06
1
Error: missing value where TRUE/FALSE needed
Can any explain the following error: Error in if ((seedCount <= seedNumber) && (valueDiff > sup)) { : missing value where TRUE/FALSE needed which I get upon running this script: seedNumber <- 10 seeds <- array(dim = seedNumber) seedCount <- 1 maxValue <- 100 sup <- maxValue / 2 fcsPar <- array(as.integer(rnorm(100, 50, 10))) while (seedCount <=
2008 Jan 06
1
Error .. missing value where TRUE/FALSE needed
Can any explain the following error: Error in if ((seedCount <= seedNumber) && (valueDiff > sup)) { : missing value where TRUE/FALSE needed which I get upon running this script: seedNumber <- 10 seeds <- array(dim = seedNumber) seedCount <- 1 maxValue <- 100 sup <- maxValue / 2 fcsPar <- array(as.integer(rnorm(100, 50, 10))) while (seedCount <=
2007 Oct 08
0
Camping-list Digest, Vol 18, Issue 1
UNSUBSCRIBE On Oct 5, 2007, at 1:27 PM, camping-list-request at rubyforge.org wrote: > Send Camping-list mailing list submissions to > camping-list at rubyforge.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://rubyforge.org/mailman/listinfo/camping-list > or, via email, send a message with subject or body ''help'' to >
2006 Feb 28
5
Problem with paginate, include and foreign keys
Hi all, Solaris 10 Ruby 1.8.4 Rails 1.0.0 Postgres 8.1 postgres driver 0.7.1 I''m having a problem with getting paginate() to properly pick up an FK constraint properly. I don''t seem to have this issue with ActiveRecord, however. Consider: create table start_dates ( id bigserial, start_date date unique, max_slots int default 40, primary key (id) ); create
2009 Dec 21
3
beginner problem
Hi, I´m starting using rails. I have one problem. I create a controller, the code is the next: class PlayersController < ApplicationController scaffold:player end I did all the things that I suppose to do, but a problem appears when try to open my webpage application. The error is the next NoMethodError in PlayersController#index undefined method `scaffold'' for
2007 Oct 05
11
Session handling busted on Oracle
Hi, Ruby 1.8.6 (one-click) Camping 1.5 I''d submit this as a bug, but the tracker says I''m forbidden, so here you go. The first problem is that the sql to create the sessions table is broken. This is what it tried to send: CREATE TABLE sessions ( id NUMBER(38) NOT NULL PRIMARY KEY (38), --> Problem here hashid VARCHAR2(32), created_at DATE, ivars CLOB DEFAULT
2006 Jan 23
2
UserEngine -- Permission.synchronize_with_controllers -- trouble with my own controller modules
I suspect there''s an easier version of this question that I could ask, but I''m not sure where I''m going wrong. I have LoginEngine and UserEngine setup and seemingly running fine. However, not all of my controllers are being found when I run "rake sync_permissions". Specifically, it''s the controllers that are not in the base controllers folder, but
2006 May 30
0
Invalid sequencer interrupt with AIC79xx driver and linux-xen kernel
I have a Dell ASC-39230(B) U320 SCSI controller. If I use the linux-2.6-xen kernel I am getting an "Invalid Sequencer interrupt" and the system hangs after this. But if I use the linux-2.6-xen0 kernel it works well. Does anyone know why this is happening and how I can make it go away? Thanks, Aravindh Puthiyaparambil Xen Development Team Unisys, Tredyffrin PA ACPI: PCI Interrupt
2005 Nov 19
1
link_to weirdness
Hi, I''ve got a page running at say http://example.com:3000/admin/players Then I''ve this bit of code to generate a URL like: http://example.com:3000/admin/players?order_col=fname&order_dir=desc <%=link_to col[:label], :overwrite_params => { :order_col => col[:field], :order_dir => @order_dir == ''asc'' ? ''desc'' :
2004 Mar 26
0
sequencer (sound)
Greetings! Hope this is the right forum. Got the 20040309 wine source, built it, installed it. Seemns to work reasonably well. However, when attempting to install/run games that are stated to be working under wine (Caesar III, Railroad Tycoon II), I can install (in the case of Caesar III, I get sound, none in RRTII). However, when attempting to run Caesar, it hangs, and I get a blank
2006 Feb 27
1
Odd problem in Agile tutorial
I am getting an undefined method error in my cart.rb class when trying to find in an array. I cannot see what my error is. Perhaps a view more eyes can help me with this: #--------------------------------------------------------------- 1 class Cart 2 3 attr_reader :items 4 attr_reader :total_price 5 6 def initialize 7 @items = [] 8
2006 Jan 19
1
[Newbie] undefined method `useremail'' error
Hi all, I''m just starting out... the solution to this must be really trivial but can''t figure out what''s wrong. I''m using Webrick + Rails 1.0 The error is: undefined method `useremail'' error What am I missing? Thanks, Lorenzo class User < ActiveRecord::Base set_table_name "\"tblUser\"" set_primary_key
2008 Jun 05
0
[LLVMdev] A question about CBackend.cpp
Hi, I'm reading the code in CBackend.cpp and found some wired chunk in void CWriter::printConstant(Constant *CPV) 938 if (ConstantInt *CI = dyn_cast<ConstantInt>(CPV)) { 939 const Type* Ty = CI->getType(); 940 if (Ty == Type::Int1Ty) 941 Out << (CI->getZExtValue() ? '1' : '0'); 942 else if (Ty == Type::Int32Ty) 943 Out << CI->getZExtValue() <<