Permalink
Browse files

a null sequence was not being handled

  • Loading branch information...
1 parent e120625 commit a203a2219357f4f0d12c3973224b17b1f206dde0 @randallsutton randallsutton committed Dec 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Massive.Oracle.cs
View
@@ -489,7 +489,7 @@ public class DynamicModel : DynamicObject {
var cmd = CreateInsertCommand(ex);
cmd.Connection = conn;
cmd.ExecuteNonQuery();
- if (_sequence != "")
+ if (!string.IsNullOrEmpty(_sequence))
{
cmd.CommandText = "SELECT " + _sequence + ".NEXTVAL as newID FROM DUAL";
ex.ID = cmd.ExecuteScalar();

0 comments on commit a203a22

Please sign in to comment.