Displaying 20 results from an estimated 200 matches similar to: "Running unit tests on SQL Server"
2011 Jul 25
4
Rails 3 test database issues
I am having a problem using the test database in Rails 3. It
apparently has kept track of aspects of the database that I deleted
completely from my migrations at some point. I don''t always use the
''down'' part of a migration and sometimes just recreate the whole
database. I did rake db:migrate:reset and rake db:test:prepare, but
when I run my test it is trying to access
2005 Apr 27
4
has_many syntax
Hi all,
I have the following inside of an AR class definition:
relationships=ActiveRecord::Base.connection.select_all(my_relationships_sql)
relationships.each do |relationship|
has_many RelatedItems, :class_name => relationship[''RelatedClass''],
:foreign_key => relationship[''ForeignKey'']
end
This kind of works, but how can I assign the name of the
2005 Dec 18
1
Informix adapter testing
I''ve just written an ActiveRecord adapter for Informix. It lacks a
pair of features that I will add later, but it works for me.
I found this on the web:
http://wiki.rubyonrails.com/rails/pages/HowToWriteAnActiveRecordAdapter
and followed it, but when I get to
$ rake test_informix
I get the following error messages:
-----------------------8<-----------------------
2005 Mar 16
1
Is there an opposite of Inflector.Camelize
Or to put it another way, is there a function f, such that
Inflector.f(Inflector.Camelize(x)) = x
?
Enquiring minds need to know.
Adelle.
2012 Jul 04
1
[LLVMdev] Non-tail calls
Hi all.
I am using LLVM to develop a procedural language. Can anybody point me to an example that uses CreateCall for a non-tail call? I am having trouble doing anything with the return value from the call besides returning it immediately.
i.e. Passing the CallInst created by CreateCall to CreateRet is working fine, but I am having trouble storing the returned value in a local variable or
2012 Jul 04
1
[LLVMdev] Non-tail calls
On Wed, Jul 04, 2012 at 11:31:57AM +0100, Joey wrote:
> Sounds like you are using the C++ API.
>
> You can store the value like:
> Value *val = Builder.CreateCall(...);
>
> Then, for example, you can do:
> Builder.CreateAdd(val, val);
That looks a lot like what I am trying to do. I will assume that my problem is either caused by my environment (VC7.1) or by the fact
2006 Jun 21
7
How to install patches?
Hi,
Can someone explain how do I install patches.
Once I go to the page, I am not sure what to download and how to apply?
I am RoR newbie.
-Thanks
Hari
--
Posted via http://www.ruby-forum.com/.
2009 Apr 14
6
SQL Server via DBI/ODBC configuration
I have followed the cookbook on http://wiki.rubyonrails.org/database-support/ms-sql
but am having problems with the rails part. I can connect to the
database using sqsh so I think all the freetds plumbing is good. When
I try to connect to the db with a rake db:migrate or just using script/
console I get this error:
>> Client.find(:first)
DBI::InterfaceError: Unable to load driver
2003 Dec 05
2
attempting login with hostname not username
Hi. I'm running a RH 9 machine with Samba 3.0.0 as a domain member of a
Win2003 ADS domain. I've setup samba w/ winbind and added a test share on
the Linux box.
I can see and access Windows shares from my Linux box, but I cannot access
the Linux share from a Win2k machine. I can see the Linux machine and the
just fine when browsing the network, but when I attempt to access the share
I
1999 Apr 13
0
Invalid network name in tree connect
Can't connect to my newly-set-up Samba server from any machine in my
domain, or from the machine itself.
Network numbers/names replaced to protect the nervous :)
Anyway, the NT server I also tried from claims that "login not
allowed from this workstation."
I've got the allow statement set up to allow any machine in my subnet
to try and log in.
The machine is configured to
2005 Jul 10
0
Problems with firefly connection via SIP
My firefly softphone is having problems connecting via SIP.
When I set it up, one provider does appears to connec, but trying to call
results in a 'Couldn't start call'
The other responses with a 401 failure code.
Xten connects okay via SIP.
Is there something about Firefly SIP configuration that I don't know about?
IAX connects okay
/
Obelix
2007 Jul 08
0
security = server, 3.0.25b
Hello, all
Just attempted upgrade from 3.0.23c to 3.0.25b and had to revert.
We have 2 Samba servers, one as a security = user machine, the
second as a slave off the first, using security = server and
password server = first server.
Nothing fancy in the config. I can get to my home on the second
server, but other mapped drives are giving me a user/password
prompt that 3.0.23c
1998 Aug 17
0
NN comment fields, Browse lists, case sensitivity, and Samba
>> From: "Mark Hazen" <mhazen@franklin.uga.edu>
>> Subject: Re: Network Neighborhood comment fields and Samba
>>
>>Have you tried commenting that string out in your smb.conf file, and letting
>>the string be set first in the individual configs? That'd be my first
>>suggestion.
I have tried that, and that just forced the default comment of:
2000 Mar 03
7
[PATCH] Add a Maximum Idle Time (1.2.2)
The attached patch adds an option (off by default to preserve current
behavior) to set a timeout on the select() statement that waits for input
in clientloop.c. This fixes a timeout issue for me (explained below) and
probably also fixes the timeouts mentioned in last month's thread "Idle
time out". The patch is also available by http from:
2003 Mar 15
0
[Bug 64] New: Conntrack-Table is not cleared on inferface down using target MASQUERADE
https://bugzilla.netfilter.org/cgi-bin/bugzilla/show_bug.cgi?id=64
Summary: Conntrack-Table is not cleared on inferface down using
target MASQUERADE
Product: netfilter/iptables
Version: linux-2.4.x
Platform: i386
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: NAT
2008 Feb 29
17
Is SQL Server not supported in RoR on the Mac?
Hi -- I''ve been having problems connecting to a SQL Server database that
I thought might be related to the fact I was upgrading Rails to 2.0.
However, I also was moving the project to my shiny new macbook.
Anyway, after jumping through a few hoops (instaling DBI, etc.), I
finally get to my latest error message:
<error>
DBI::InterfaceError: Could not load driver (no such file to
1999 Apr 28
4
Installation Help, Please !!!
I have been having some difficulty with the installation of samba V2.0.3 on an ultraSparc 3000 server. I was able to get it built, I have configured, defined an smb.conf file, created an smbpasswd file, and I still get errors when I work through the Diagnosing Samba checklist. BTW, I have checked the conf file using testparms and corrected the problem mentioned there! I am using the newest source
2006 Jan 17
15
legacy database and finder_sql nightmare!
This is my first rails app with a legacy database and I''m having a
terrible time getting the models set up correctly. I have an order
table that has a primary field named order_number. I have a name table
with a primary of item_number. These two tables are liked by the
item_number and the order_number, but not as you might think. If the
order_number is 2500, then each entry in
2005 Apr 18
11
Create a pseudo-model from SQL query?
I''m having a hard time figuring out how to build my application using Rails. As i go
along, simple questions occur to me like: are you supposed to have a separate model
class (each in its own file, in the app/models directory) for each table in your
database? You''d think that something as basic as this would be laid out in the
introductory documentation but, alas, the
2000 Apr 18
12
Samba Upgrade
Everyone,
I upgraded Solaris 2.6 box running Samba 2.0.4 to a Solaris 7
with a new version of Samba 2.0.6 I used all my old smb.conf
files on this new server and now I can see the server but when you try
to connec to it is give the message " Not accessable " Unexpected
network error occured" Thanks for any help getting this figured out
it must be some thing small I am missing