Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Auction 2.0
 New Topic  Reply to Topic
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 11

bobby131313
Senior Member

USA
1163 Posts

Posted - 31 July 2010 :  18:59:56  Show Profile  Visit bobby131313's Homepage  Reply with Quote
Something real screwy now... still showing all closed items that I bid on, and now in the "Items I am Bidding on" table all the ending times are the same which is from the last item in the "Items I'm selling" table.

Switch the order of your title tags
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 31 July 2010 :  19:06:04  Show Profile  Reply with Quote
There you go. Done (I think).

Edited by - Carefree on 31 July 2010 19:31:11
Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 31 July 2010 :  20:42:26  Show Profile  Visit bobby131313's Homepage  Reply with Quote
Looking good this time!

Thank you!

Switch the order of your title tags
Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 01 August 2010 :  20:33:11  Show Profile  Visit bobby131313's Homepage  Reply with Quote
Another little bug with auction_bidders.asp.

The sorting is not numeric, it's going by the number of characters in the field first so a descending sort looks like this....

756.75
755.75
55555

I'm guessing the column has to be a different type? Or maybe it needs to be formatted to 2 decimal places before inserting in the DB?

Switch the order of your title tags

Edited by - bobby131313 on 01 August 2010 20:34:39
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 02 August 2010 :  10:52:46  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
I didn't even look at the code, but the database column being a text type, you either convert and order it (which maybe be costly, performance wise) or the ordering will be text based, without the conversion. Likely everything would be easier if the column type was different - probably using a double would fit all 3 databases, if that was the concern, but not too sure the dbs syntax supports doubles.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 02 August 2010 :  14:40:01  Show Profile  Reply with Quote
The DBS syntax does support "double". Syntax should be like this


Auction Mod Version 2.6

[ALTER]
AUCTIONBIDS
ALTER#MAXPRICE#DOUBLE#NULL#
[END]

[ALTER]
AUCTIONITEMS
ALTER#OPENINGBID#DOUBLE#NULL#
ALTER#CURRENTBID#DOUBLE#NULL#
[END]
Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 02 August 2010 :  15:13:26  Show Profile  Visit bobby131313's Homepage  Reply with Quote
So I just have to run that?

Switch the order of your title tags
Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 02 August 2010 :  18:07:00  Show Profile  Visit bobby131313's Homepage  Reply with Quote
tried running it and get this...

altering Column MAXPRICE...
ALTER TABLE FORUM_AUCTIONBIDS ALTER COLUMN MAXPRICE double NULL
ALTER TABLE FORUM_AUCTIONBIDS ALTER COLUMN MAXPRICE double NULL
-2147217900 | Incorrect syntax near the keyword 'NULL'.

altering Column OPENINGBID...
ALTER TABLE FORUM_AUCTIONITEMS ALTER COLUMN OPENINGBID double NULL
ALTER TABLE FORUM_AUCTIONITEMS ALTER COLUMN OPENINGBID double NULL
-2147217900 | Incorrect syntax near the keyword 'NULL'.

altering Column CURRENTBID...
ALTER TABLE FORUM_AUCTIONITEMS ALTER COLUMN CURRENTBID double NULL
ALTER TABLE FORUM_AUCTIONITEMS ALTER COLUMN CURRENTBID double NULL
-2147217900 | Incorrect syntax near the keyword 'NULL'.

Switch the order of your title tags
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 02 August 2010 :  18:10:34  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
As I said, double is not supported by the dbs management code, so it's transferred to the output SQL directly. If you replace double by float, it should work for SQL Server.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 02 August 2010 :  18:28:05  Show Profile  Visit bobby131313's Homepage  Reply with Quote
Ran perfectly and sorts correctly now.

Thanks Rui.

Switch the order of your title tags
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 02 August 2010 :  18:42:58  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
In principle, you should have no issues adding bids but, as I said, didn't look at the code, so maybe check that the new type doesn't bring you any issues while adding bids.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 02 August 2010 :  18:57:10  Show Profile  Visit bobby131313's Homepage  Reply with Quote
Checked right away and looks good.

Switch the order of your title tags
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 02 August 2010 :  19:07:34  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
Cool .


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 02 August 2010 :  23:52:31  Show Profile  Reply with Quote
Float isn't available to Access users, guess there will have to be more than one version.
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 03 August 2010 :  10:18:57  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
That, or do a quick change in the two dbs handling files to add it. As of now, the dbs syntax does not support floating point types syntax common to all 3 supported databases.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page
Page: of 11 Previous Topic Topic Next Topic  
Previous Page | Next Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.15 seconds. Powered By: Snitz Forums 2000 Version 3.4.07