Welcome, Guest. Please Login or Register.
November 04, 2024, 06:28:39 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  English User Help  |  English Help  |  PostgreSQL (mssql, Oracle etc)... « previous next »
Pages: [1] Reply Ignore Print
Author Topic: PostgreSQL (mssql, Oracle etc)...  (Read 1019 times)
vitalic
Noobie
*
Posts: 2


ICQ - 33406939
PostgreSQL (mssql, Oracle etc)...
« on: April 17, 2003, 10:11:06 AM »
Reply with quote

it`s a good idea make db_layer for different SQL.. (like it done in phpBB)...

YaBB - best (best from other ibb,ubb,phbb etc, etc...)
best `coz:
1 - have one - simple template
2 - can switch on/off images
3 - handle all what can be needed in forum
but...
i use YaBB gold... and need/want to upgrade to YabbSE but... i have postgreSQL, and many-many parts of site use PostgreSQL...

i begin recoding YabbSE for handle other SQL ...not all, but PostgreSQL or MySQL...

may be someone make it too?

now i rewrite particulary index.php, MessageIndex.php and Subs.php...
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:PostgreSQL (mssql, Oracle etc)...
« Reply #1 on: April 17, 2003, 10:25:40 AM »
Reply with quote

YaBB SE 2 will have multiple database support :)

u can read here if u wanna know more: http://www.yabbse.org/community/index.php?board=142;action=display;threadid=19755
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
vitalic
Noobie
*
Posts: 2


ICQ - 33406939
Re:PostgreSQL (mssql, Oracle etc)...
« Reply #2 on: April 17, 2003, 11:47:26 AM »
Reply with quote

thanx for answer) so... than i stop rebuilding, and wait till YaBB SE 2...
did i can help for developming?...
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:PostgreSQL (mssql, Oracle etc)...
« Reply #3 on: April 18, 2003, 03:24:10 AM »
Reply with quote

hmm... i don't know if we need more devs or not
how good are you with php and postgres?
you can try contacting one of the admins here :)
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:PostgreSQL (mssql, Oracle etc)...
« Reply #4 on: April 18, 2003, 04:40:19 AM »
Reply with quote

Well, I don't know much about the differences, myself...

Would you mind posting/pming me a short list?  The only one I know is that I *think* it doesn't support LIMIT.

-[Unknown]
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:PostgreSQL (mssql, Oracle etc)...
« Reply #5 on: April 18, 2003, 07:21:03 AM »
Reply with quote

Quote from: [Unknown] on April 18, 2003, 04:40:19 AM
Well, I don't know much about the differences, myself...

Would you mind posting/pming me a short list?  The only one I know is that I *think* it doesn't support LIMIT.

-[Unknown]

Thanks, I was wrong :$.

*goes off to get a replacement for FIND_IN_SET...*

-[Unknown]
Logged
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
Re:PostgreSQL (mssql, Oracle etc)...
« Reply #6 on: April 18, 2003, 07:53:40 AM »
Reply with quote

A lot of the CREATE TABLE queries are probably going to have to change as well.

And I know that Oracle doesn't support LIMIT at least the versions I've used.
« Last Edit: April 18, 2003, 07:54:09 AM by Gobalopper » Logged
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:PostgreSQL (mssql, Oracle etc)...
« Reply #7 on: April 18, 2003, 05:48:05 PM »
Reply with quote

can someone post that list of differences?
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:PostgreSQL (mssql, Oracle etc)...
« Reply #8 on: April 18, 2003, 08:56:47 PM »
Reply with quote

hope this will help a bit:
- http://www.sitepoint.com/article/529/1
- http://www.sitepoint.com/article/542/1
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:PostgreSQL (mssql, Oracle etc)...
« Reply #9 on: April 18, 2003, 09:01:01 PM »
Reply with quote

For FIND_IN_SET:

Quotewhen i make port from mysql to pgsql ...
i have one field where CSV of members was used... in mysql i use find_in_set... in pgsql i replace it to:

$findinset="(parentlist='".$id."' or parentlist like '%,".$id."' or parentlist like '".$id.",%' or parentlist like '%,".$id.",%')";

i`m not sure about speed, but it`s work

So, I guess...

tr/FIND_IN_SET\(([^,]+?),\s?([^,]+?)\)/\\2 SIMILAR TO '(,|[^.])' || \\1 || '(,|[^.])'/

CONCAT would be more difficult to change from CONCAT(a, b, c, ...) -> a || b || c || ...

Quoteabout LIMIT you can read at manual:
http://www.postgresql.org/docs/view.php?version=7.3&idoc=1&file=queries-limit.html

so, and in pgsql is absent:
REPLACE INTO
FIND_IN_SET
IF (but CASE exist)
...
P.S.
i`am not too proffessional in pgsql, `coz all i do that for  MySQL, but in my new work, more parts of site use PgSQL.... and i need rewrite/upgrade some...

Much in the way of thanks go to vitalic for this.

-[Unknown]
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  PostgreSQL (mssql, Oracle etc)... « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.120 seconds with 21 queries.