From d15aa639f5d49e5a7de92cbfc73c1aa390bc319e Mon Sep 17 00:00:00 2001 From: Riley McArdle Date: Thu, 7 Jul 2011 16:11:30 -0500 Subject: [PATCH] Fixed issue #48 - VerifyDatabaseVersion fails with new (empty) database tables. --- mRemoteV1/Config/Config.Connections.Save.vb | 1 + 1 file changed, 1 insertion(+) diff --git a/mRemoteV1/Config/Config.Connections.Save.vb b/mRemoteV1/Config/Config.Connections.Save.vb index cbcc4bc8..52a61cca 100644 --- a/mRemoteV1/Config/Config.Connections.Save.vb +++ b/mRemoteV1/Config/Config.Connections.Save.vb @@ -181,6 +181,7 @@ Namespace Config Try Dim sqlCommand As New SqlCommand("SELECT * FROM tblRoot", sqlConnection) sqlDataReader = sqlCommand.ExecuteReader() + If (Not sqlDataReader.HasRows) Then Return True ' assume new empty database sqlDataReader.Read() Dim enCulture As CultureInfo = New CultureInfo("en-US")