[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/koffice/1.6/koffice/kexi/kexidb
From:       Jaroslaw Staniek <js () iidea ! pl>
Date:       2006-09-21 10:14:07
Message-ID: 1158833647.113323.16604.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 587013 by staniek:

KexiDB
= fixed retrieving autonumber data

2.0: merged



 M  +1 -1      connection.cpp  


--- branches/koffice/1.6/koffice/kexi/kexidb/connection.cpp #587012:587013
@@ -3186,7 +3186,7 @@
 			return false;
 		}
 	}
-	if (getROWID) {
+	if (getROWID && /*sanity check*/data.size() > fieldsExpanded.size()) {
 //		KexiDBDbg << "Connection::insertRow(): new ROWID == " << (uint)ROWID << endl;
 		data[data.size()-1] = ROWID;
 	}
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic