Closed (fixed)
Project:
Webform
Version:
4.6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
19 Jun 2005 at 21:13 UTC
Updated:
20 May 2006 at 08:30 UTC
Jump to comment: Most recent file
HI!
I just made a post in forum, maybe shoud've post it here, sorry.
Please take a look at
Bye the way, almost finish with support for Postgresql so, I'll post it soon!
Bye &Tnx!
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | webform.inc.diff | 1.22 KB | igrcic |
| #4 | webform.module.diff | 1.98 KB | igrcic |
Comments
Comment #1
ullgren commentedI'm aware of this issue.
One way to do it is to break it up into seperate insert statements.
Maybe it would be good to do this depending on what database beeing used ?
Currently I'm doing some work with re-designing the database structure. I can put this in.
Is ALTER TABLE table1 RENAME .... valid SQL in Postgre ?
Thanks for your work.
Comment #2
igrcic commentedyes, thats a valid sql syntax :)
ALTER TABLE table_name RENAME old_column_name TO new_column_nameI got it working on Postgre, Ill submit it this evening!
Comment #3
ullgren commentedGreate!
Maybe it's time for me to install postresql on my test machine.
Comment #4
igrcic commentedOk here they are.
I didnt test them properly but I think everything works fine. So i can create webform with any of types, then I can fill it without problems. There is only one error when viewing as table, but I know its because of query. When i clik on table i get lots of columns because i had to add more columns in GROUP BY syntax (because of postgres). Will fix it up... have to rewrite query a bit...
Comment #5
igrcic commentedAnd .inc file.
following query is not yet final because it gives many columns , but at lest it doesnt throw errors!
Comment #6
igrcic commentedTo explain module.diff a bit:
even if I wrote function for that imploded query i used one from http://drupal.org/node/18134. It seems to do its job. There was one missing t in submitted :)
following query gives names of columns in table:
for postgresql didn't find better solution than this one:
Tnx to my friend dodobas for that one:)
Comment #7
ullgren commentedChanging to patch (so I remember to add it).
I'm working on changes in the database structure (http://drupal.org/node/16853) so I will add these patches after this work is done.
Comment #8
igrcic commentedand how are you going to solve that select column name query? theyre pretty different :)
Comment #9
ullgren commentedFor this problem I have a patent and very secret solution, that I can not share with the open source community.
Weeeeeell ok ... if you really want to know. But I warn you ..... it's not gone be pretty when the patent office comes barging in on you.
The solution : I'll remove them and put the creation of the columns into the "updgrade webform" thingy ;-P
Comment #10
ullgren commentedThe 4.7 release should be postgresql compatible.