search for: nullabl

Displaying 20 results from an estimated 63 matches for "nullabl".

Did you mean: nullable
2008 May 24
8
[LLVMdev] Advice on CFG pre-analysis
In the language I am working on, there are cases where the call flow graph can affect the type of a variable. A simple example is a "nullable" type (a pointer which is allowed to be NULL), which can be converted into a non-nullable type via an if-test. So for example if x is nullable, and I test x != NULL, then inside the conditional block the type of x is no longer nullable. Nullable types behave slightly differently (and prod...
2008 May 28
0
[LLVMdev] Advice on CFG pre-analysis
On May 23, 2008, at 11:53 PM, Talin wrote: > In the language I am working on, there are cases where the call flow > graph can affect the type of a variable. Ok. > A simple example is a > "nullable" type (a pointer which is allowed to be NULL), which can be > converted into a non-nullable type via an if-test. So for example if x > is nullable, and I test x != NULL, then inside the conditional block > the > type of x is no longer nullable. Makes sense. > Nullable types...
2008 May 24
0
[LLVMdev] Advice on CFG pre-analysis
On May 24, 2008, at 02:53, Talin wrote: > In the language I am working on, there are cases where the call flow > graph can affect the type of a variable. A simple example is a > "nullable" type (a pointer which is allowed to be NULL), which can > be converted into a non-nullable type via an if-test. So for example > if x is nullable, and I test x != NULL, then inside the conditional > block the type of x is no longer nullable. Nullable types behave > slight...
2008 May 28
3
[LLVMdev] Advice on CFG pre-analysis
...statement tree, and its more amenable to manipulation (especially when taking break/continue and other jumps into account.) For one thing, implementing Python-style "yield" statement (which is a transformation of the graph) will be easier with this data structure. In the case of the nullable types, I don't need to store full use/def chains, since all I want to know is "given variable X, is there any chance that X could be null at this point?" If there are multiple definitions of X reaching a particular use of X, then the value could be null if any of the reaching def...
2006 Feb 07
5
OCI adapter slowdown on dictionary access
...else has this problem or if anybody wants to include the change into the next ActiveRecord version, here is what I''ve changed: in activerecord-1.13.2/lib/active_record/connection_adapters/oci_adapter.rb at line 341 (in the #columns method): - select column_name, data_type, data_default, nullable, + select /*+ RULE */ column_name, data_type, data_default, nullable, Best regards and thanks for the great framework, Andreas Gungl
2006 Jan 11
8
Oracle and Rails seems really slow.... In development
...column "username", :string t.column "created_on", :datetime t.column "email", :string t.column "note", :text end And everything works fine, but in development, it has to run this query for each view select column_name, data_type, data_default, nullable, decode(data_type, ''NUMBER'', data_precision, ''VARCHAR2'', data_length, null) as length, decode(data_type, ''NUMBER'', data_scale, null) as scale from user_catalog cat, user_synonyms syn, all_tab_columns col where cat.table_name = ''U...
2006 Jan 30
9
error when adding a new table to the existing application
Deniz wrote: > Hi Everybody, > I am a newbie in this list so please forgive me if this is a lengthy > message. > Currently I am working on a project at my work place that includes > viewing some oracle tables(I do not have control over to rewrite the > tables) and searching the tables based on a given criteria with Rails. > Up untill now everything was working great. The
2006 Oct 27
1
has_many with nullable foreign_key?
Is there a way to use has_many and have it operate like such? select * from pages where site_id = #{id} or site_id is null I know there''s finder_sql, but then I''ll lose the find_in_collection goodness. Thanks, Joe -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the
2019 May 28
1
Re: [libnbd PATCH 2/4] api: Rearrange flags argument to block_status
...ts translated into a language like Python in the natural way. However for C it's translated into a varargs list with a rather complex system of flags, see: http://libguestfs.org/guestfs.3.html#calls-with-optional-arguments This has the advantage of supporting optional arguments that can be nullable (or non-zero default value for ints) vs. not present. On the other hand this may be overkill for libnbd. If the only optional argument we support we care about is a non-zero int (or say a non-nullable string where NULL = not present) then mixing the optional args into the same list could be fine...
2006 Mar 05
6
Which postgresql adapter to use for rails core? How about production?
I wanted to fix some things up in the trunk, so I set up the databases and ran the unit tests. A bunch fail for postgres, and even more error out. I know of two postgresql adapters: postgres-pr and ruby-postgres. Strangely, they each fail different tests. So if I want to fix things up, which one should I be using? For that matter, which adapter should I be using for production? Finding out
2010 Jan 10
1
xmlToDataFrame#Help!!!#follow-up
...AttributeType name='Sex' rs:number='2'> <s:datatype dt:type='string' rs:dbtype='str' dt:maxLength='1' rs:maybenull='false'/> </s:AttributeType> <s:AttributeType name='Age' rs:number='3' rs:nullable='true'> <s:datatype dt:type='float' dt:maxLength='8' rs:precision='15' rs:fixedlength='true'/> </s:AttributeType> <s:AttributeType name='Height' rs:number='4' rs:nullable='true'>...
2006 Nov 17
4
set empty values as null in the database
Le''s say that I have a table called people and the column middle_name is nullable. If the user enters say blank or empty space then in the database it is recorded as empty space. I would like in all my models all empty spaces to be recorded as null. I guess I can write a plugin which will do so for all the models but I''m sure something like that should already be exis...
2006 Sep 27
5
Question about has_one
...e can have at most ONE User (let''s assume a message can be created without a user associated to it), these are my questions: 1) How would I use has_one in my model (if that''s the proper association to use) to indicate that a message can have at most one User (without having a nullable user_id column in Message)? BTW, I chose to have the UserMessage mapping in its own table because if I had user_id in the Message table, I would be forced to use the NULL value to indicate that a Message has no User associated with it, and if there are tons of Messages with no User, I cringe a...
2007 Aug 14
3
[LLVMdev] Some questions about building an LLVM frontend
...e system, then lowering your front-end types to the LLVM types when doing the "code generation" stage. > There are some concepts in my language which I can't quite grok how > to represent in terms of LLVM types. > > For example, one of the type modifiers is the 'nullable' modifier. > Normally references to objects aren't allowed to be NULL, however > in this language you can put a question mark after a type name to > indicate that this particular reference can be NULL. (Essentially > it declares a disjoint type between the object and th...
2013 Feb 18
13
Correct Use or Naming of Migrations
Hi Folks, There is much discussion where I work at present regarding migrations, and the ''correct'' usage or not of them. TL;DR Should migrations be used just to modify schema, and other ''deploy'' tasks done other ways? If yes, how to ensure no repeat runs of such tasks (seeds, jobs etc) Background Once you''re live there are often additional things
2006 May 31
2
ActiveRecord and database metadata. How much can I get?
All, I have need of getting at some underlying database metadata for ActiveRecord descendants. Does anyone know if I can get access to the following attributes of the underlying column for a given ActiveRecord object: Is it a currency object? Is it nullable? Is it a signed int? Is it searchable? Column length Column name Column precision Column scale Column data type - how specific can I get here? I''m ok with digging into the ActiveRecord::Base object if I have to and mucking around with it. I figure this metadata must be lingering somewh...
2007 Aug 25
0
[LLVMdev] Some questions about building an LLVM frontend
...g your front-end types to the LLVM types when doing the "code > generation" stage. > >> There are some concepts in my language which I can't quite grok how to >> represent in terms of LLVM types. >> >> For example, one of the type modifiers is the 'nullable' modifier. >> Normally references to objects aren't allowed to be NULL, however in >> this language you can put a question mark after a type name to >> indicate that this particular reference can be NULL. (Essentially it >> declares a disjoint type between the o...
2017 Apr 27
2
ld.lld on MacOS question
Hopefully the right list … otherwise pointers appreciated (I’ve spent days trying to find a solution but could not find sufficient documentation, could not find a proper list of -flavor darwin commands) I am setting up an environment for cross compiling shared libraries using LLVM. Overall this works perfectly for many unix like environments but MacOS is a pain in the ass despite that I am
2006 Jan 20
10
1st attempt at rails testing - could really use some help...
Howdy, I''m attempting my first rails test & I could use some help... I have the test posted at http://rafb.net/paste/results/YjWkIh45.html... when I run it, the test fails, but the db table is never restored & it seems that the fixtures file was never loaded... Any ideas as to what I''m doing wrong? Thanks! -- Posted via http://www.ruby-forum.com/.
2010 Nov 25
1
RODBC
...255 510 NA 2 Murder 8 DOUBLE 53 8 NA 3 Assault 4 INTEGER 10 4 0 4 UrbanPop 4 INTEGER 10 4 0 5 Rape 8 DOUBLE 53 8 NA NUM_PREC_RADIX NULLABLE REMARKS COLUMN_DEF SQL_DATA_TYPE SQL_DATETIME_SUB 1 NA 1 <NA> <NA> 12 NA 2 2 1 <NA> <NA> 8 NA 3 10 1 <NA> <NA> 4 NA 4 10...