View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001727SphereServerexecutable - linux buildpublic03-03-10 12:0012-06-14 12:46
ReporterHOCOK 
Assigned ToBen 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionwon't fix 
PlatformOSOS Version
Product Version0.56c Nightly 
Target VersionFixed in Version 
Summary0001727: db. object mysql overwriten
Descriptiondb.query "SELECT * FROM `table1`;"
for i 0 (<db.row.numrows> - 1)
   db.query "SELECT * FROM `table2`;"
   local.z = <db.row.0.any>
endfor

Can you fix, when you use db in for , then db object is overwrited by next db query ?

need some local db query.. so it will not be overwriten..

This is really annoying bug
TagsNo tags attached.
Nightly VersionNot Available
Experimental FlagsNone
Option FlagsNone
Internal Build Number
Attached Files

- Relationships

-  Notes
(0000427)
dzhony (reporter)
27-03-10 13:50

use JOIN statement in SQL query, the for cycle may be significantly slower
(0000428)
HOCOK (reporter)
27-03-10 14:00

yes but this is not a fix.. some times you need to use function in function and in function / dialog etc. Every of them use own sql query, and they all will overwrite db. object.. that is not nice.
(0002288)
Ben (manager)
12-06-14 03:39

DB is a global variable so this is not possible.
Changing DB to be a localized var would create other issues in the server and is not worth changing for.
(0002291)
HOCOK (reporter)
12-06-14 12:15

Thanks for the "fast" answer. We have learned to deal with this bug.

- Issue History
Date Modified Username Field Change
03-03-10 12:00 HOCOK New Issue
03-03-10 12:00 HOCOK Nightly Version => Not Available
03-03-10 12:00 HOCOK Experimental Flags => None
03-03-10 12:00 HOCOK Option Flags => None
27-03-10 13:50 dzhony Note Added: 0000427
27-03-10 14:00 HOCOK Note Added: 0000428
14-11-10 19:54 MrSugarCube Category executable - linux => executable - linux build
12-06-14 03:39 Ben Note Added: 0002288
12-06-14 03:40 Ben Status new => closed
12-06-14 03:40 Ben Assigned To => Ben
12-06-14 03:40 Ben Resolution open => won't fix
12-06-14 12:15 HOCOK Note Added: 0002291
12-06-14 12:15 HOCOK Status closed => feedback
12-06-14 12:15 HOCOK Resolution won't fix => reopened
12-06-14 12:46 Ben Status feedback => closed
12-06-14 12:46 Ben Resolution reopened => won't fix


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker