search for: tbname

Displaying 4 results from an estimated 4 matches for "tbname".

Did you mean: dbname
2011 May 20
3
[LLVMdev] convert a char * to a value
...all, Please i need help, I have a method that takes 2 arguments with type char *: void branchPredict(char *b1, char *b2){ --- -- } i'm supposed to add this method, in an IR basic bloc: to add it into a basic bloc i do: //i: is the basic bloc std::vector<Value*> void_43_params; Constant* tbname = ConstantArray::get(M.getContext(),i->getNameStr() , true); Constant* pbname = ConstantArray::get(M.getContext(), i->getPrevNode()->getNameStr(), true); void_43_params.push_back(tbname); void_43_params.push_back(pbname); CallInst* void_43 = CallInst::Create(func_branchPredict, void_43_pa...
2011 May 20
0
[LLVMdev] convert a char * to a value
...; char *: > void branchPredict(char *b1, char *b2){ > --- > -- > } > i'm supposed to add this method, in an IR basic bloc: > to add it into a basic bloc i do: The problem is that you are passing arrays to the function instead of passing pointers to arrays. Instead of making tbname and pbname arguments to the function, you need to create GlobalVariable's that have, as their initializer, the Constant's tbname and pbname. You may also have to take the GlobalVariables and insert a cast instruction (bitcast) to cast them from pointers to arrays to pointers of i8. Ho...
2006 Jun 05
0
migration to be called inside others migrations
...es which need some custom modifications and the columns updated_at to be added etc... Now since the rails related columns will be the same for many (but not all) tables I was thinking... can I write a Migration that sounds like that class AddRailsFields < ActiveRecord::Migration def self.up(tbname) add_column tbname, "lock_version", :integer, :default => 0 rename_column tbname, "oldtimestamp", "updated_at" end def self.down(tbname) remove_column tbname, "lock_version" rename_column tbname, "updated_at", "oldtimest...
2006 Apr 26
2
Is there a way to dynamically add new tables?
I don''t know the correct terminology to describe what I''m trying to do, so I''ll just try to explain it the best I can. I''m the guinea pig at work to start using Ruby and RoR. My project is to make a web app that is basically just a simple drop down menu that lists the names of all the tables in a particular MySQL database, then when the user clicks on one