Re: [h2] ENUM data type is not nullable?

2017-09-26 Thread Andrei Tokar
Hi Nikita, 

Just posted a pull request to fix enum nullability issue.
https://github.com/h2database/h2database/pull/615
Problem was actually not just with select, but with insert as well. 

Thanks for taking time to report and troubleshoot this problem!

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to h2-database+unsubscr...@googlegroups.com.
To post to this group, send email to h2-database@googlegroups.com.
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.


Re: [h2] ENUM data type is not nullable?

2017-09-25 Thread Никита Карпухин
Okay, so I'm not really sure if this is worth pull request, or if this bug 
requires some other deeper changes, but I changed getValue method of 
ExpressionColumn, so that in addition to 
column.getEnumerators() != null
 it also checks if 
value != ValueNull.INSTANCE 

At least this works for SELECT, as I said, not sure if something else needs 
changing.

воскресенье, 24 сентября 2017 г., 18:36:03 UTC+5 пользователь Никита 
Карпухин написал:
>
> Ok, I built it from source, the bug still persists.
>
> суббота, 23 сентября 2017 г., 16:41:49 UTC+5 пользователь Noel Grandin 
> написал:
>>
>> that sounds like a bug​, I think we might have fixed that one already, 
>> perhaps try current master
>>
>

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to h2-database+unsubscr...@googlegroups.com.
To post to this group, send email to h2-database@googlegroups.com.
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.


Re: [h2] ENUM data type is not nullable?

2017-09-24 Thread Никита Карпухин
Ok, I built it from source, the bug still persists.

суббота, 23 сентября 2017 г., 16:41:49 UTC+5 пользователь Noel Grandin 
написал:
>
> that sounds like a bug​, I think we might have fixed that one already, 
> perhaps try current master
>

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to h2-database+unsubscr...@googlegroups.com.
To post to this group, send email to h2-database@googlegroups.com.
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.


Re: [h2] ENUM data type is not nullable?

2017-09-23 Thread Никита Карпухин
Weird, that's on 1.4.196. By "current master" you mean compiling from 
github? I'll try that and see if that'll work

суббота, 23 сентября 2017 г., 16:41:49 UTC+5 пользователь Noel Grandin 
написал:
>
> that sounds like a bug​, I think we might have fixed that one already, 
> perhaps try current master
>

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to h2-database+unsubscr...@googlegroups.com.
To post to this group, send email to h2-database@googlegroups.com.
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.


Re: [h2] ENUM data type is not nullable?

2017-09-23 Thread Noel Grandin
that sounds like a bug​, I think we might have fixed that one already,
perhaps try current master

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to h2-database+unsubscr...@googlegroups.com.
To post to this group, send email to h2-database@googlegroups.com.
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.